Vector3DUtils provides additional Vector3D math functions.

Static methods

staticgetAngle(w:Vector3D, q:Vector3D):Float

Returns the angle in radians made between the 3d number obejct and the given Vector3D object.

Parameters:

w

The first 3d number object to use in the calculation.

q

The first 3d number object to use in the calculation.

Returns:

An angle in radians representing the angle between the two Vector3D objects.

staticmatrix2euler(m1:Matrix3D):Vector3D

Returns a Vector3D object with the euler angles represented by the 3x3 matrix rotation of the given Matrix3D object.

Parameters:

m1

The 3d matrix object to use in the calculation.

Returns:

A 3d vector representing the euler angles extracted from the 3d matrix.

staticmatrix2scale(m:Matrix3D):Vector3D

Returns a Vector3D object containing the scale values represented by the given Matrix3D object.

Parameters:

m

The 3d matrix object to use in the calculation.

Returns:

A 3d vector representing the axis scale values extracted from the 3d matrix.

staticquaternion2euler(quarternion:Quaternion):Vector3D

Returns a Vector3D object containing the euler angles represented by the given Quaternion object.

Parameters:

quaternion

The quaternion object to use in the calculation.

Returns:

A 3d vector representing the euler angles extracted from the quaternion.

staticrotatePoint(aPoint:Vector3D, rotation:Vector3D):Vector3D

staticsubdivide(startVal:Vector3D, endVal:Vector3D, numSegments:Int):Vector<Vector3D>