0.44.0
|
#include <iaVector3.h>
Public Member Functions | |
iaVector3 ()=default | |
iaVector3 (T x, T y, T z) | |
iaVector3< T > | operator+ (const iaVector3< T > &a) const |
void | operator+= (const iaVector3< T > &a) |
iaVector3< T > | operator- (const iaVector3< T > &a) const |
void | operator-= (const iaVector3< T > &a) |
iaVector3< T > | operator= (const iaVector3< T > &a) |
iaVector3< T > | operator% (const iaVector3< T > &a) const |
iaVector3< T > | operator* (T a) const |
void | operator*= (T a) |
iaVector3< T > | operator/ (T a) const |
void | operator/= (T a) |
T | operator* (const iaVector3< T > &a) const |
bool | operator== (const iaVector3< T > &a) const |
bool | operator!= (const iaVector3< T > &a) const |
const T & | operator[] (int i) const |
T & | operator[] (int i) |
void | set (T x, T y, T z) |
T | length () const |
T | length2 () const |
T | distance (const iaVector3< T > &v) const |
T | distance2 (const iaVector3< T > &v) const |
iaVector3< T > | project (const iaVector3< T > &v) const |
iaVector3< T > | reject (const iaVector3< T > &v) |
T | angle (const iaVector3< T > &a) const |
T | angleXZ () const |
void | normalize () |
void | negate () |
const T * | getData () const |
T * | getData () |
template<class T2 > | |
iaVector3< T2 > | convert () const |
template<class T2 > | |
iaVector3< T2 > | convert () const |
Public Attributes | |
T | _x = static_cast<T>(0) |
T | _y = static_cast<T>(0) |
T | _z = static_cast<T>(0) |
3d vector class
|
default |
does nothing
iaVector3::iaVector3 | ( | T | x, |
T | y, | ||
T | z | ||
) |
initializes member variables
x | x component |
y | y component |
z | z component |
T iaVector3::angle | ( | const iaVector3< T > & | a | ) | const |
T iaVector3::angleXZ | ( | ) | const |
returns angle relative to XZ plane
converts the vector in to given type of vector
IGOR_INLINE T iaVector3::distance | ( | const iaVector3< T > & | v | ) | const |
v | second vector |
IGOR_INLINE T iaVector3::distance2 | ( | const iaVector3< T > & | v | ) | const |
v | second vector |
T * iaVector3::getData | ( | ) |
const T * iaVector3::getData | ( | ) | const |
\retruns pointer to internal data
IGOR_INLINE T iaVector3::length | ( | ) | const |
IGOR_INLINE T iaVector3::length2 | ( | ) | const |
IGOR_INLINE void iaVector3::negate | ( | ) |
negates the vector
void iaVector3::normalize | ( | ) |
normalizes the vector
bool iaVector3::operator!= | ( | const iaVector3< T > & | a | ) | const |
negated comparison of two vectors
a | the second vector to compare this vector with |
IGOR_INLINE iaVector3< T > iaVector3::operator% | ( | const iaVector3< T > & | a | ) | const |
cross product of two vectors
a | the vector to calculate the cross product with |
IGOR_INLINE T iaVector3::operator* | ( | const iaVector3< T > & | a | ) | const |
dot product (scalar product) of two vectors
a | second vector to calculate the scalar product with |
IGOR_INLINE iaVector3< T > iaVector3::operator* | ( | T | a | ) | const |
vector scaling
a | the factor to scale the vector with |
IGOR_INLINE void iaVector3::operator*= | ( | T | a | ) |
vector scaling and assignment
a | the factor to scale this vector with |
IGOR_INLINE iaVector3< T > iaVector3::operator+ | ( | const iaVector3< T > & | a | ) | const |
vector addition
a | the vector to add |
IGOR_INLINE void iaVector3::operator+= | ( | const iaVector3< T > & | a | ) |
vector addition and assignment
a | the vector to add to this vector |
IGOR_INLINE iaVector3< T > iaVector3::operator- | ( | const iaVector3< T > & | a | ) | const |
vector subtraction
a | the vector to subtract |
IGOR_INLINE void iaVector3::operator-= | ( | const iaVector3< T > & | a | ) |
vector subtraction and assignment
a | the vector to subtract to this vector |
IGOR_INLINE iaVector3< T > iaVector3::operator/ | ( | T | a | ) | const |
vector scaling by division
a | the factor to scale the vector with |
IGOR_INLINE void iaVector3::operator/= | ( | T | a | ) |
vector scaling by division and assignment
a | the factor to scale this vector with |
vector assignment
a | the vector to assign to this vector |
bool iaVector3::operator== | ( | const iaVector3< T > & | a | ) | const |
comparison of two vectors
a | the second vector to compare this vector with |
T & iaVector3::operator[] | ( | int | i | ) |
i | index of component |
const T & iaVector3::operator[] | ( | int | i | ) | const |
i | index of component |
project this vector on v
v | the vector to project on |
reject this vector from v
v | the vector to reject from |
void iaVector3::set | ( | T | x, |
T | y, | ||
T | z | ||
) |
sets components of vector
x | x component |
y | y component |
z | z component |
T iaux::iaVector3< T >::_x = static_cast<T>(0) |
x component
T iaux::iaVector3< T >::_y = static_cast<T>(0) |
y component
T iaux::iaVector3< T >::_z = static_cast<T>(0) |
z component