#include <xsi_vector4.h>
Public Member Functions |
|
| __forceinline | CVector4 () |
| __forceinline | CVector4 (double in_dX, double in_dY, double in_dZ, double in_dW) |
| __forceinline | CVector4 (const CVector4 &in_vector4) |
| __forceinline | ~CVector4 () |
| __forceinline CVector4 & | operator= (const CVector4 &in_vector4) |
| __forceinline bool | operator== (const CVector4 &in_vector4) const |
| __forceinline bool | operator!= (const CVector4 &in_vector4) const |
| __forceinline CVector4 & | operator~ () |
| __forceinline CVector4 & | operator+= (const CVector4 &in_vector4) |
| __forceinline CVector4 & | operator-= (const CVector4 &in_vector4) |
| __forceinline CVector4 & | operator *= (const CMatrix4 &in_matrix4) |
| __forceinline CVector4 & | operator *= (const CTransformation &in_transformation) |
| __forceinline CVector4 & | operator *= (const double &in_dAlpha) |
| double | operator[] (const short &in_sIndex) |
| __forceinline CVector4 & | MulByMatrix4InPlace (const CMatrix4 &in_matrix4) |
| __forceinline CVector4 & | MulByMatrix4 (const CVector4 &in_vector4, const CMatrix4 &in_matrix4) |
| __forceinline CVector4 & | MulByTransformationInPlace (const CTransformation &in_transformation) |
| __forceinline CVector4 & | MulByTransformation (const CVector4 &in_vector4, const CTransformation &in_transformation) |
| __forceinline CVector4 & | PutNull () |
| double | GetLength () const |
| double | GetLengthSquared () const |
| CStatus | NormalizeInPlace () |
| CStatus | Normalize (const CVector4 &in_vector4) |
| __forceinline double | Dot (const CVector4 &in_vector4) const |
| __forceinline CVector4 & | Cross (const CVector4 &in_vector4A, const CVector4 &in_vector4B) |
| CVector4 & | AbsoluteInPlace () |
| CVector4 & | Absolute (const CVector4 &in_vector4) |
| bool | EpsilonEquals (const CVector4 &in_vector4, double in_dEpsilon) const |
| __forceinline bool | Equals (const CVector4 &in_vector4) const |
| __forceinline CVector4 & | ScaleAddInPlace (double in_dS, const CVector4 &in_vector4) |
| __forceinline CVector4 & | ScaleAdd (double in_dS, const CVector4 &in_vector4A, const CVector4 &in_vector4B) |
| __forceinline CVector4 & | ScaleInPlace (double in_dAlpha) |
| __forceinline CVector4 & | Scale (double in_dAlpha, const CVector4 &in_vector4) |
| __forceinline CVector4 & | NegateInPlace () |
| __forceinline CVector4 & | Negate (const CVector4 &in_vector4) |
| __forceinline CVector4 & | SubInPlace (const CVector4 &in_vector4) |
| __forceinline CVector4 & | Sub (const CVector4 &in_vector4A, const CVector4 &in_vector4B) |
| __forceinline CVector4 & | AddInPlace (const CVector4 &in_vector4) |
| __forceinline CVector4 & | Add (const CVector4 &in_vector4A, const CVector4 &in_vector4B) |
| __forceinline void | Get (double &out_dX, double &out_dY, double &out_dZ, double &out_dW) const |
| __forceinline CVector4 & | Set (double in_dX, double in_dY, double in_dZ, double in_dW) |
| __forceinline double | GetW () const |
| __forceinline CVector4 & | PutW (double in_dW) |
| __forceinline double | GetZ () const |
| __forceinline CVector4 & | PutZ (double in_dZ) |
| __forceinline double | GetY () const |
| __forceinline CVector4 & | PutY (double in_dY) |
| __forceinline double | GetX () const |
| __forceinline CVector4 & | PutX (double in_dX) |
| __forceinline CVector4 | ( | double | in_dX, | |
| double | in_dY, | |||
| double | in_dZ, | |||
| double | in_dW | |||
| ) |
Constructor.
| in_dX | Value of the x component | |
| in_dY | Value of the y component | |
| in_dZ | Value of the z component | |
| in_dW | Value of the w component |
Copy constructor.
| in_vector4 | constant class object. |
Default destructor.
Assignment operator.
| in_vector4 | constant class object. |
Equality operator tests the strict equality of this vector with the specified vector.
| in_vector4 | Operand vector. |
Inequality operator tests the strict inequality of this vector with the specified vector.
| in_vector4 | Operand vector. |
Negates this vector (this = - this).
Adds the input vector to this one (this = this + in_vector4).
| in_vector4 | Operand vector. |
Subtracts the input vector4 (in_vector4) from this one (this = this - in_vector4).
| in_vector4 | Operand vector. |
Right-multiplies this vector by the matrix m in place. (this = this . m )
| in_matrix4 | Operand matrix. |
| __forceinline CVector4 & operator *= | ( | const CTransformation & | in_transformation | ) |
Right-multiplies this vector by the transformation t in place (this = this . t).
| in_transformation | transformation operand. |
| __forceinline CVector4 & operator *= | ( | const double & | in_dAlpha | ) |
Scales this vector by the input scalar (alpha) (this = alpha * this).
| in_dAlpha | Scalar multiplicator. |
Read-only accessors to the X,Y,Z,W components.
| in_sIndex | 0,1,2,3 for X,Y,Z and W values. |
Right-multiplies this vector by the matrix m in place (this = this . m ).
| in_matrix4 | Operand matrix. |
Right-multiplies the vector v by the matrix m and store the result in this vector (this = v . m ).
| in_vector4 | Operand vector | |
| in_matrix4 | Operand matrix. |
Right-multiplies this vector by the transformation t in place (this = this . t).
| in_transformation | transformation operand. |
| __forceinline CVector4& MulByTransformation | ( | const CVector4 & | in_vector4, | |
| const CTransformation & | in_transformation | |||
| ) |
Right-multiplies the vector v by the transformation t and store the result in this vector (this = v . t ).
| in_vector4 | transformation operand. | |
| in_transformation | transformation operand. |
Sets this vector to a null vector.
Returns the length of this vector.
Returns the squared length of this vector.
Normalizes this vector in place.
Sets the value of this vector to the normalization of inputed vector.
| in_vector4 | vector operand. |
Returns the dot product of this vector and the inputed vector.
| in_vector4 | vector operand. |
Sets this vector to the vector cross product of vectors A and B.
| in_vector4A | vector operand. | |
| in_vector4B | vector operand. |
Sets each component of this vector to its absolute value.
Sets each component of the vector in_vector4 to its absolute value and places the modified values into this vector
Tests the equality of this vector with the vector in_vector3, with a tolerance of Epsilon.
| in_vector4 | Operand vector. | |
| in_dEpsilon | Error margin Possible Values: [0, +INF[ should be a positive value |
Tests the strict equality of this vector with the vector in_vector3.
| in_vector4 | Operand vector. |
Sets the value of this vector to the scalar multiplication of itself by s and then adds vector v (this = s*this + v).
| in_dS | Scalar multiplicator. | |
| in_vector4 | Operand vector. |
| __forceinline CVector4 & ScaleAdd | ( | double | in_dS, | |
| const CVector4 & | in_vector4A, | |||
| const CVector4 & | in_vector4B | |||
| ) |
Sets the value of this vector to the scalar multiplication of vector A by s and then adds vector B (this = s*v1 + v2).
| in_dS | Scalar multiplicator. | |
| in_vector4A | Operand vector. | |
| in_vector4B | Operand vector. |
Scales this vector by the input scalar (alpha) (this = alpha * this).
| in_dAlpha | Scalar multiplicator. |
Scales the input vector (v) by (alpha) store the result into this one (this = alpha * v).
| in_dAlpha | Scalar multiplicator. | |
| in_vector4 | Operand vector. |
Negates this vector (this = - this).
Negates the input vector (v) store the result into this one (this = - v).
| in_vector4 | Operand vector. |
Subtracts the input vector (v) from this one (this = this - v).
| in_vector4 | Operand vector. |
Subtracts the input vector (A) from the input vector (B) and stores the result into this one (this = A - B).
| in_vector4A | Operand vector. | |
| in_vector4B | Operand vector. |
Adds the input vector to this one (this = this + in_vector3).
| in_vector4 | Operand vector. |
Adds both input vectors and store the result in this one (this = A + B).
| in_vector4A | Operand vector. | |
| in_vector4B | Operand vector. |
Returns the X, Y, Z and W values of the vector.
| out_dX | X value to get in the vector. | |
| out_dY | Y value to get in the vector. | |
| out_dZ | Z value to get in the vector. | |
| out_dW | W value to get in the vector. |
Sets the X, Y, Z and W values of the vector.
| in_dX | X value to set in the vector. | |
| in_dY | Y value to set in the vector. | |
| in_dZ | Z value to set in the vector. | |
| in_dW | W value to set in the vector. |
Returns the W value of this vector.
Sets the W value of this vector.
| in_dW | z value. |
Returns the Z value of this vector.
Sets the Z value of this vector.
| in_dZ | z value. |
Returns the Y value of this vector.
Sets the Y value of this vector.
| in_dY | y value. |
Returns the X value of this vector.
Sets the X value of this vector.
| in_dX | x value. |