#include <vec3.h>
Public Member Functions | |
| vec3 () | |
| vec3 (float x, float y, float z=0.0f) | |
| vec3 (const float *u) | |
| vec3 (const vec3 &) | |
| float & | operator[] (unsigned) |
| element of the vector | |
| vec3 & | operator= (const vec3 &) |
| assignment | |
| vec3 & | operator+= (const vec3 &) |
| adds the vector to this one | |
| vec3 & | operator-= (const vec3 &) |
| subtracts the vector from this one | |
| vec3 & | operator *= (float) |
| scales this vector with the scalar | |
| vec3 & | operator/= (float) |
| scales this vector with the inverse of the scalar | |
| const vec3 | operator+ (const vec3 &) const |
| adds two vectors | |
| const vec3 | operator- (const vec3 &) const |
| subtracts two vectors | |
| const vec3 | operator * (float) const |
| scales the vector with the scalar | |
| const vec3 | operator/ (float) const |
| scales the vector with the inverse of the scalar | |
| bool | operator== (const vec3 &) const |
| returns true if the vectors are equal | |
| bool | operator!= (const vec3 &) const |
| returns true if the vectors differ in at least one component | |
| vec3 & | operator- () |
| opposite vector | |
| float | norm () const |
| norm of the vector (length*length) | |
| float | length () const |
| length of the vector | |
| vec3 & | normalize () |
| normalizes the vector | |
| float | dist2 (const vec3 &) |
| norm of the vectors' difference (dist*dist) | |
| float | dist (const vec3 &) |
| length of the vectors' difference | |
| float | operator * (const vec3 &) const |
| dot product | |
| const vec3 | operator^ (const vec3 &) const |
| cross product | |
| void | print () |
| print the vector components | |
Public Attributes | |
| float | v [3] |
| our vector data | |
Definition at line 11 of file vec3.h.
| vec3::vec3 | ( | ) |
Definition at line 3 of file vec3.cpp.
References v.
Referenced by operator *(), operator+(), operator-(), operator/(), and operator^().
| vec3::vec3 | ( | float | x, | |
| float | y, | |||
| float | z = 0.0f | |||
| ) |
| float & vec3::operator[] | ( | unsigned | i | ) |
| vec3 & vec3::operator *= | ( | float | t | ) |
| vec3 & vec3::operator/= | ( | float | t | ) |
| const vec3 vec3::operator * | ( | float | t | ) | const |
| const vec3 vec3::operator/ | ( | float | t | ) | const |
| bool vec3::operator== | ( | const vec3 & | u | ) | const |
| bool vec3::operator!= | ( | const vec3 & | u | ) | const |
| float vec3::norm | ( | ) | const [inline] |
| float vec3::length | ( | ) | const [inline] |
| vec3 & vec3::normalize | ( | ) |
normalizes the vector
Definition at line 114 of file vec3.cpp.
References v.
Referenced by FlowData::normalizeVelocityChannels().
| float vec3::dist2 | ( | const vec3 & | u | ) |
| float vec3::dist | ( | const vec3 & | u | ) |
length of the vectors' difference
Definition at line 132 of file vec3.cpp.
Referenced by StreamLineGrid::getMinimalDistance().
| float vec3::operator * | ( | const vec3 & | u | ) | const |
| float vec3::v[3] |
our vector data
Definition at line 15 of file vec3.h.
Referenced by Arrows::draw(), FlowGeometry::getInterpolationAt(), norm(), normalize(), operator *(), operator *=(), operator!=(), operator+=(), operator-=(), operator<<(), operator=(), operator==(), operator[](), operator^(), FlowGeometry::readFromFile(), and vec3().
1.5.4