#include <flowvec3.h>
Public Member Functions | |
flowvec3 () | |
flowvec3 (float x, float y, float z=0.0f) | |
flowvec3 (const float *u) | |
flowvec3 (const flowvec3 &) | |
float & | operator[] (unsigned) |
returns an element of the vector | |
flowvec3 & | operator= (const flowvec3 &) |
assignment operator | |
flowvec3 & | operator+= (const flowvec3 &) |
adds the input vector to this one | |
flowvec3 & | operator-= (const flowvec3 &) |
subtracts the input vector from this one | |
flowvec3 & | operator*= (float) |
scales this vector with the scalar | |
flowvec3 & | operator/= (float) |
scales this vector with the inverse of the scalar | |
const flowvec3 | operator+ (const flowvec3 &) const |
adds two vectors | |
const flowvec3 | operator- (const flowvec3 &) const |
subtracts two vectors | |
const flowvec3 | operator* (float) const |
scales the vector with the scalar | |
const flowvec3 | operator/ (float) const |
scales the vector with the inverse of the scalar | |
bool | operator== (const flowvec3 &) const |
returns true if the vectors are equal | |
bool | operator!= (const flowvec3 &) const |
returns true if the vectors differ in at least one component | |
flowvec3 & | operator- () |
opposite vector | |
float | norm () const |
norm of the vector (length*length) | |
float | length () const |
length of the vector | |
flowvec3 & | operator! () |
normalizes the vector | |
float | dist2 (const flowvec3 &) |
norm of the vectors' difference (dist*dist) | |
float | dist (const flowvec3 &) |
length of the vectors' difference | |
float | operator* (const flowvec3 &) const |
dot product | |
const flowvec3 | operator^ (const flowvec3 &) const |
cross product | |
void | print () |
print the vector components | |
flowvec3 () | |
flowvec3 (float x, float y, float z=0.0f) | |
flowvec3 (const float *u) | |
flowvec3 (const flowvec3 &) | |
float & | operator[] (unsigned) |
returns an element of the vector | |
flowvec3 & | operator= (const flowvec3 &) |
assignment operator | |
flowvec3 & | operator+= (const flowvec3 &) |
adds the input vector to this one | |
flowvec3 & | operator-= (const flowvec3 &) |
subtracts the input vector from this one | |
flowvec3 & | operator*= (float) |
scales this vector with the scalar | |
flowvec3 & | operator/= (float) |
scales this vector with the inverse of the scalar | |
const flowvec3 | operator+ (const flowvec3 &) const |
adds two vectors | |
const flowvec3 | operator- (const flowvec3 &) const |
subtracts two vectors | |
const flowvec3 | operator* (float) const |
scales the vector with the scalar | |
const flowvec3 | operator/ (float) const |
scales the vector with the inverse of the scalar | |
bool | operator== (const flowvec3 &) const |
returns true if the vectors are equal | |
bool | operator!= (const flowvec3 &) const |
returns true if the vectors differ in at least one component | |
flowvec3 & | operator- () |
opposite vector | |
float | norm () const |
norm of the vector (length*length) | |
float | length () const |
length of the vector | |
flowvec3 & | operator! () |
normalizes the vector | |
float | dist2 (const flowvec3 &) |
norm of the vectors' difference (dist*dist) | |
float | dist (const flowvec3 &) |
length of the vectors' difference | |
float | operator* (const flowvec3 &) const |
dot product | |
const flowvec3 | operator^ (const flowvec3 &) const |
cross product | |
void | print () |
print the vector components | |
Public Attributes | |
float | v [3] |
our vector data |
flowvec3::flowvec3 | ( | ) |
flowvec3::flowvec3 | ( | float | x, | |
float | y, | |||
float | z = 0.0f | |||
) |
flowvec3::flowvec3 | ( | const float * | u | ) |
flowvec3::flowvec3 | ( | const flowvec3 & | u | ) |
flowvec3::flowvec3 | ( | ) |
flowvec3::flowvec3 | ( | float | x, | |
float | y, | |||
float | z = 0.0f | |||
) |
flowvec3::flowvec3 | ( | const float * | u | ) |
flowvec3::flowvec3 | ( | const flowvec3 & | ) |
float flowvec3::dist | ( | const flowvec3 & | ) |
length of the vectors' difference
float flowvec3::dist | ( | const flowvec3 & | u | ) |
length of the vectors' difference
float flowvec3::dist2 | ( | const flowvec3 & | ) |
norm of the vectors' difference (dist*dist)
float flowvec3::dist2 | ( | const flowvec3 & | u | ) |
norm of the vectors' difference (dist*dist)
float flowvec3::length | ( | ) | const |
length of the vector
float flowvec3::length | ( | ) | const [inline] |
length of the vector
float flowvec3::norm | ( | ) | const |
norm of the vector (length*length)
float flowvec3::norm | ( | ) | const [inline] |
norm of the vector (length*length)
flowvec3& flowvec3::operator! | ( | ) |
normalizes the vector
flowvec3 & flowvec3::operator! | ( | ) |
normalizes the vector
bool flowvec3::operator!= | ( | const flowvec3 & | ) | const |
returns true if the vectors differ in at least one component
bool flowvec3::operator!= | ( | const flowvec3 & | u | ) | const |
returns true if the vectors differ in at least one component
float flowvec3::operator* | ( | const flowvec3 & | ) | const |
dot product
const flowvec3 flowvec3::operator* | ( | float | ) | const |
scales the vector with the scalar
float flowvec3::operator* | ( | const flowvec3 & | u | ) | const [inline] |
dot product
const flowvec3 flowvec3::operator* | ( | float | t | ) | const |
scales the vector with the scalar
flowvec3& flowvec3::operator*= | ( | float | ) |
scales this vector with the scalar
flowvec3 & flowvec3::operator*= | ( | float | t | ) |
scales this vector with the scalar
flowvec3& flowvec3::operator- | ( | ) |
opposite vector
flowvec3 & flowvec3::operator- | ( | ) |
opposite vector
const flowvec3 flowvec3::operator/ | ( | float | ) | const |
scales the vector with the inverse of the scalar
const flowvec3 flowvec3::operator/ | ( | float | t | ) | const |
scales the vector with the inverse of the scalar
flowvec3& flowvec3::operator/= | ( | float | ) |
scales this vector with the inverse of the scalar
flowvec3 & flowvec3::operator/= | ( | float | t | ) |
scales this vector with the inverse of the scalar
bool flowvec3::operator== | ( | const flowvec3 & | ) | const |
returns true if the vectors are equal
bool flowvec3::operator== | ( | const flowvec3 & | u | ) | const |
returns true if the vectors are equal
float& flowvec3::operator[] | ( | unsigned | ) |
returns an element of the vector
float & flowvec3::operator[] | ( | unsigned | i | ) |
returns an element of the vector
void flowvec3::print | ( | ) |
print the vector components
void flowvec3::print | ( | ) |
print the vector components
float flowvec3::v |
our vector data