Assimp
v2.0 (November 2010)
|
Represents a three-dimensional vector. More...
Public Member Functions | |
aiVector3D () | |
aiVector3D (float _x, float _y, float _z) | |
aiVector3D (float _xyz) | |
aiVector3D (const aiVector3D &o) | |
float | Length () const |
Get the length of the vector. | |
aiVector3D & | Normalize () |
Normalize the vector. | |
bool | operator!= (const aiVector3D &other) const |
const aiVector3D & | operator*= (float f) |
aiVector3D & | operator*= (const aiMatrix3x3 &mat) |
aiVector3D & | operator*= (const aiMatrix4x4 &mat) |
const aiVector3D & | operator+= (const aiVector3D &o) |
const aiVector3D & | operator-= (const aiVector3D &o) |
const aiVector3D & | operator/= (float f) |
bool | operator== (const aiVector3D &other) const |
float | operator[] (unsigned int i) const |
float & | operator[] (unsigned int i) |
void | Set (float pX, float pY, float pZ=0.f) |
Set the components of a vector. | |
float | SquareLength () const |
Get the squared length of the vector. | |
const aiVector3D | SymMul (const aiVector3D &o) |
Componentwise multiplication of two vectors. | |
Public Attributes | |
float | x |
float | y |
float | z |
Represents a three-dimensional vector.
aiVector3D::aiVector3D | ( | ) | [inline] |
aiVector3D::aiVector3D | ( | float | _x, |
float | _y, | ||
float | _z | ||
) | [inline] |
aiVector3D::aiVector3D | ( | float | _xyz | ) | [inline] |
aiVector3D::aiVector3D | ( | const aiVector3D & | o | ) | [inline] |
AI_FORCE_INLINE float aiVector3D::Length | ( | ) | const |
Get the length of the vector.
AI_FORCE_INLINE aiVector3D & aiVector3D::Normalize | ( | ) |
Normalize the vector.
AI_FORCE_INLINE bool aiVector3D::operator!= | ( | const aiVector3D & | other | ) | const |
AI_FORCE_INLINE const aiVector3D & aiVector3D::operator*= | ( | float | f | ) |
AI_FORCE_INLINE aiVector3D & aiVector3D::operator*= | ( | const aiMatrix3x3 & | mat | ) |
AI_FORCE_INLINE aiVector3D & aiVector3D::operator*= | ( | const aiMatrix4x4 & | mat | ) |
AI_FORCE_INLINE const aiVector3D & aiVector3D::operator+= | ( | const aiVector3D & | o | ) |
AI_FORCE_INLINE const aiVector3D & aiVector3D::operator-= | ( | const aiVector3D & | o | ) |
AI_FORCE_INLINE const aiVector3D & aiVector3D::operator/= | ( | float | f | ) |
AI_FORCE_INLINE bool aiVector3D::operator== | ( | const aiVector3D & | other | ) | const |
AI_FORCE_INLINE float aiVector3D::operator[] | ( | unsigned int | i | ) | const |
AI_FORCE_INLINE float & aiVector3D::operator[] | ( | unsigned int | i | ) |
AI_FORCE_INLINE void aiVector3D::Set | ( | float | pX, |
float | pY, | ||
float | pZ = 0.f |
||
) |
Set the components of a vector.
pX | X component |
pY | Y component |
pZ | Z component |
AI_FORCE_INLINE float aiVector3D::SquareLength | ( | ) | const |
Get the squared length of the vector.
AI_FORCE_INLINE const aiVector3D aiVector3D::SymMul | ( | const aiVector3D & | o | ) |
Componentwise multiplication of two vectors.
Note that vec*vec yields the dot product.
o | Second factor |
float aiVector3D::x |
float aiVector3D::y |
float aiVector3D::z |