Class: etk::Vector4D
Synopsis:
+ Vector4D (void);
+ Vector4D (const T & _x,
const T & _y,
const T & _z,
const T & _w);
+ Vector4D& operator+= (const Vector4D & v);
+ Vector4Doperator+ (const Vector4D & v);
+ Vector4D& operator-= (const Vector4D & v);
+ Vector4Doperator- (const Vector4D & v);
+ Vector4D& operator*= (const T & s);
+ Vector4Doperator* (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 ();
+ Vector4Dnormalized ();
+ Vector4Dabsolute (void);
+ Vector4D& operator*= (const Vector4D & v);
+ Vector4Doperator* (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
Parameter: x X value
Parameter: y Y value
Parameter: z Z value
operator+= ()
Vector4D & operator+=(const Vector4D & v);
Add a vector to this one
Parameter: The vector to add to this one
operator+ ()
Vector4D operator+(const Vector4D & v);
operator-= ()
Vector4D & operator-=(const Vector4D & v);
Subtract a vector from this one
Parameter: The vector to subtract
operator- ()
Vector4D operator-(const Vector4D & v);
operator*= ()
Vector4D & operator*=(const T & s);
Scale the vector
Parameter: s Scale factor
operator* ()
Vector4D operator*(const T & s);
operator/= ()
Vector4D & operator/=(const Vector4D & s);
Inversely scale the vector
Parameter: s Scale factor to divide by
operator/= ()
Vector4D & operator/=(const T & s);
dot ()
float dot(const Vector4D & v);
Return the dot product
Parameter: v The other vector in 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
Parameter: wAxis The axis to rotate about
Parameter: angle The angle to rotate by
//**
Parameter: v The other vector
//**
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
Parameter: v The other vector
//**
Parameter: v The other vector
Parameter: t The ration of this to v (t = 0 => return this, t=1 => return other)
//**
Parameter: v The other vector
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
Parameter: other The other btVector3 to compare with
setMin ()
void setMin(const Vector4D & other);
Set each element to the min of the current values and the values of another btVector3
Parameter: other The other btVector3 to compare with
setValue ()
void setValue(const T & _x,
const T & _y,
const T & _z,
const T & _w);
setZero ()
void setZero(void);
isZero ()
bool isZero(void);
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
-
Parameter: x X value
Parameter: y Y value
Parameter: z Z value
operator+= ()
Vector4D& operator+=(const Vector4D & v);
Add a vector to this one
-
Parameter: The vector to add to this one
operator+ ()
Vector4Doperator+(const Vector4D & v);
operator-= ()
Vector4D& operator-=(const Vector4D & v);
Subtract a vector from this one
-
Parameter: The vector to subtract
operator- ()
Vector4Doperator-(const Vector4D & v);
operator*= ()
Vector4D& operator*=(const T & s);
Scale the vector
-
Parameter: s Scale factor
operator* ()
Vector4Doperator*(const T & s);
operator/= ()
Vector4D& operator/=(const Vector4D & s);
Inversely scale the vector
-
Parameter: s Scale factor to divide by
operator/= ()
Vector4D& operator/=(const T & s);
dot ()
float dot(const Vector4D& v);
Return the dot product
-
Parameter: v The other vector in 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 ()
Vector4Dnormalized();
Return a normalized version of this vector
absolute ()
Vector4Dabsolute(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
-
Parameter: wAxis The axis to rotate about
Parameter: angle The angle to rotate by //**
Parameter: v The other vector //**
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
-
Parameter: v The other vector
//**
Parameter: v The other vector
Parameter: t The ration of this to v (t = 0 => return this, t=1 => return other) //**
Parameter: v The other vector
operator* ()
Vector4Doperator*(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
-
Parameter: other The other btVector3 to compare with
setMin ()
void setMin(const Vector4D& other);
Set each element to the min of the current values and the values of another btVector3
-
Parameter: other The other btVector3 to compare with
setValue ()
void setValue(const T & _x, const T & _y, const T & _z, const T & _w);
setZero ()
void setZero(void);
isZero ()
bool isZero(void);