Build a new Vector from a set of initial values If no there values for z and w, will be set to 0
Build a new Vector from a array If no there values for y and z, will be set to 0. w sill beset to 1
Approximated equality with controlable precision
Calculate the distance between two points pointed by this vector and other Params : b = Vector B Returns : Distance between the point pointed by this vector and other point
Normalize this vector
Define binary operator + and -
Define Scalar multiplication
Define Dot Product
Define Cross Product for R3 (operation c = a & b )
Define Scalar multiplication
Casting method to convert to other vector types
Define Equality
Returns i coord of this vector
Assigns a value to a i coord
Define unary operators + and -
Obtains the projection of this vector over other vector
Rotation in R2
Calculate the squared distance between two points pointed by this vector and other Params : b = Vector B Returns : Squared distance between the point pointed by this vector and other point
Returns a string representation of this vector
Checks that the vector have finite values Returns : True if this vector have finite values (not infinite value or NaNs)
Checks that the vector not have a weird NaN value Returns : True if this vector not have a NaN value
It's a unitary vector (length == 1) Returns : True if length approxEqual to 1.0
Returns the actual length of this Vector
Return a pointer of the internal array
Returns the actual squared length of this Vector
Returns the unit vector of this vector
Obtains the projection of two vectors
W Axis in R4 (used like a scale factor with 3d Maths with 4d Matrixes)
X Axis in R2
X Axis in R3
X Axis in R4
Y Axis in R2
Y Axis in R3
Y Axis in R4
Origin
Origin
Origin
Z Axis in R3
Z Axis in R4
Vector Dimension
N-Dimensional Vector over a FloatPoint type, where N must be 2,3 or 4