Class: etk::Vector4D


Synopsis:

+                 Vector4D         (void);
+ Vector4D (const T & _x,
const T & _y,
const T & _z,
const T & _w);
+ Vector4D & operator+= (const Vector4D & v);
+ Vector4D operator+ (const Vector4D & v);
+ Vector4D & operator-= (const Vector4D & v);
+ Vector4D operator- (const Vector4D & v);
+ Vector4D & operator*= (const T & s);
+ Vector4D operator* (const T & s);
+ Vector4D & operator/= (const Vector4D & s);
+ Vector4D & operator/= (const T & s);
+ float dot (const Vector4D & v);
+ float length2 ();
+ float length ();
+ float distance2 (const Vector4D & v);
+ float distance (const Vector4D & v);
+ Vector4D & normalize ();
+ Vector4D normalized ();
+ Vector4D absolute (void);
+ Vector4D & operator*= (const Vector4D & v);
+ Vector4D operator* (const Vector4D & v);
+ const T & getX ();
+ const T & getY ();
+ const T & getZ ();
+ const T & getW ();
+ void setX (T _x);
+ void setY (T _y);
+ void setZ (T _z);
+ void setW (T _w);
+ const T & x ();
+ const T & y ();
+ const T & z ();
+ const T & w ();
+ void operatorT* ();
+ void operatorconstT* ();
+ bool operator== (const Vector4D & other);
+ bool operator!= (const Vector4D & other);
+ void setMax (const Vector4D & other);
+ void setMin (const Vector4D & other);
+ void setValue (const T & _x,
const T & _y,
const T & _z,
const T & _w);
+ void setZero (void);
+ bool isZero (void);

Detail:

etk::Vector4D ()

Vector4D(void);

No initialization constructor (faster ...)


etk::Vector4D ()

Vector4D(const T & _x,
         const T & _y,
         const T & _z,
         const T & _w);

Constructor from scalars


operator+= ()

Vector4D & operator+=(const Vector4D & v);

Add a vector to this one


operator+ ()

Vector4D operator+(const Vector4D & v);



operator-= ()

Vector4D & operator-=(const Vector4D & v);

Subtract a vector from this one


operator- ()

Vector4D operator-(const Vector4D & v);



operator*= ()

Vector4D & operator*=(const T & s);

Scale the vector


operator* ()

Vector4D operator*(const T & s);



operator/= ()

Vector4D & operator/=(const Vector4D & s);

Inversely scale the vector


operator/= ()

Vector4D & operator/=(const T & s);



dot ()

float dot(const Vector4D & v);

Return the dot product


length2 ()

float length2();

Return the length of the vector squared


length ()

float length();

Return the length of the vector


distance2 ()

float distance2(const Vector4D & v);

Return the distance squared between the ends of this and another vector This is symantically treating the vector like a point


distance ()

float distance(const Vector4D & v);

Return the distance between the ends of this and another vector This is symantically treating the vector like a point


normalize ()

Vector4D & normalize();

Normalize this vector x^2 + y^2 + z^2 = 1


normalized ()

Vector4D normalized();

Return a normalized version of this vector


absolute ()

Vector4D absolute(void);

Return a rotated version of this vector
Return the angle between this and another vector
Return a vector will the absolute values of each element


operator*= ()

Vector4D & operator*=(const Vector4D & v);

Return the cross product between this and another vector
Return the axis with the smallest value Note return values are 0,1,2 for x, y, or z //**
Return the axis with the largest value Note return values are 0,1,2 for x, y, or z //**
Return the linear interpolation between this and another vector
Elementwise multiply this vector by the other


operator* ()

Vector4D operator*(const Vector4D & v);



getX ()

const T & getX();

Return the x value


getY ()

const T & getY();

Return the y value


getZ ()

const T & getZ();

Return the z value


getW ()

const T & getW();

Return the z value


setX ()

void setX(T _x);

Set the x value


setY ()

void setY(T _y);

Set the y value


setZ ()

void setZ(T _z);

Set the z value


setW ()

void setW(T _w);

Set the w value


x ()

const T & x();

Return the x value


y ()

const T & y();

Return the y value


z ()

const T & z();

Return the z value


w ()

const T & w();

Return the w value


operatorT* ()

void operatorT*();



operatorconstT* ()

void operatorconstT*();



operator== ()

bool operator==(const Vector4D & other);



operator!= ()

bool operator!=(const Vector4D & other);



setMax ()

void setMax(const Vector4D & other);

Set each element to the max of the current values and the values of another btVector3


setMin ()

void setMin(const Vector4D & other);

Set each element to the min of the current values and the values of another btVector3


setValue ()

void setValue(const T & _x,
              const T & _y,
              const T & _z,
              const T & _w);



setZero ()

void setZero(void);



isZero ()

bool isZero(void);