Documentation

3D Vector - Open Dev Kit Documentation

Open Dev Kit Documentation :: General :: 3D Vector

Root.Vector3
Three-dimensional vector. Consists of an X component, Y component and a Z component and can be used to represent positions or directions in 3D space

Functions

Constructor ( X Float, Y Float, Z Float )
Constructor ( Vector 2D Vector, Z Float )
Constructor ( Other 4D Vector (Quaternion) )
Add ( Vector 1 3D Vector, Vector 2 3D Vector ) 3D Vector
Returns the addition of two vectors
Subtract ( Vector 1 3D Vector, Vector 2 3D Vector ) 3D Vector
Returns the subtraction of the first vector by the second vector
Divide ( Vector 3D Vector, Scalar Float ) 3D Vector
Returns the vector divided by a scalar
Scale ( Vector 3D Vector, Scalar Float ) 3D Vector
Returns the vector multiplied by a scalar
Cross ( Vector 1 3D Vector, Vector 2 3D Vector ) 3D Vector
Returns the cross product of two vector
Dot ( Vector 1 3D Vector, Vector 2 3D Vector ) Float
Returns the dot product of two vector
Multiply ( Vector 1 3D Vector, Vector 2 3D Vector ) 3D Vector
Returns the mulitplication of the vectors' components
Distance ( Vector 1 3D Vector, Vector 2 3D Vector ) Float
Returns the distance between two vectors
Minimum ( Vector 1 3D Vector, Vector 2 3D Vector ) 3D Vector
Returns the minimum of the vectors' components
Maximum ( Vector 1 3D Vector, Vector 2 3D Vector ) 3D Vector
Returns the minimum of the vectors' components
Linear Interpolate ( Vector 1 3D Vector, Vector 2 3D Vector, Factor Double ) 3D Vector
Returns Vector 1 if Factor is 0, Vector 2 if Factor is 1 and the average of Vector 1 and 2 if Factor is 0.5, with everything in between using vector interpolation

Properties

X Float
X component of the vector
Y Float
Y component of the vector
Z Float
Z component of the vector
Normalized 3D Vector
vector with a length of 1.0
Negated 3D Vector
negated vector
Length Float
length of the vector
Length Squared Float
length of the vector squared; calculated faster and better to use against other lengths which can also easily be squared
Is Zero Boolean
vector is zero length

If you think anything is missing, please feel free to: submit documentation feedback on this page