0.44.0
|
#include <iaVector4.h>
Public Member Functions | |
iaVector4 ()=default | |
iaVector4 (T x, T y, T z, T w) | |
iaVector4< T > | operator= (const iaVector4< T > &src) |
iaVector4< T > | operator= (const iaVector3< T > &src) |
bool | operator== (const iaVector4< T > &a) const |
bool | operator!= (const iaVector4< T > &a) const |
const T & | operator[] (int i) const |
T & | operator[] (int i) |
void | set (T x, T y, T z, T w) |
T * | getData () |
const T * | getData () const |
template<class T2 > | |
iaVector4< T2 > | convert () const |
template<class T2 > | |
iaVector4< T2 > | convert () const |
Public Attributes | |
T | _x = static_cast<T>(0) |
T | _y = static_cast<T>(0) |
T | _z = static_cast<T>(0) |
T | _w = static_cast<T>(1) |
4d vector
|
default |
does nothing
iaVector4::iaVector4 | ( | T | x, |
T | y, | ||
T | z, | ||
T | w | ||
) |
param ctor
\pram x x component \pram y y component \pram z z component \pram w w component
converts the vector in to given type of vector
T * iaVector4::getData | ( | ) |
const T * iaVector4::getData | ( | ) | const |
const variant
bool iaVector4::operator!= | ( | const iaVector4< T > & | a | ) | const |
compares two vectors
a | the vector to compare this vector with |
iaVector4< T > iaux::iaVector4< T >::operator= | ( | const iaVector3< T > & | src | ) |
copy operator 3 components
leaves w component as is
src | vector to copy |
copy operator
src | vector to copy |
bool iaVector4::operator== | ( | const iaVector4< T > & | a | ) | const |
compares two vectors
a | the vector to compare this vector with |
T & iaVector4::operator[] | ( | int | i | ) |
array operator read and write
i | index of field to access |
const T & iaVector4::operator[] | ( | int | i | ) | const |
array operator read only versione
i | index of field to access |
void iaVector4::set | ( | T | x, |
T | y, | ||
T | z, | ||
T | w | ||
) |
sets the components of this vector
\pram x x component \pram y y component \pram z z component \pram w w component
T iaux::iaVector4< T >::_w = static_cast<T>(1) |
w component
T iaux::iaVector4< T >::_x = static_cast<T>(0) |
x component
T iaux::iaVector4< T >::_y = static_cast<T>(0) |
y component
T iaux::iaVector4< T >::_z = static_cast<T>(0) |
z component