Namespace: xform

xform

All types and functions belong to the xform namespace.
Source:

Members

(static) Dimensional

Properties:
Name Type Description
Dimensional constructor
Dimensions constructor
Vector constructor
Matrix constructor
Quaternion constructor
Attitude constructor
DimensionError constructor
Source:

Methods

(static) arrayIndexedEntriesEqual(arr1, arr2) → {boolean}

Performs a deep comparison of the entries of two Array-like objects.
Parameters:
Name Type Description
arr1 Array The first Array-like object to compare.
arr2 Array The second Array-like object to compare.
Source:
Returns:
True if all entries are equal, false otherwise.
Type
boolean

(static) dimCheck(obj1, obj2) → {void}

Checks the dimensions of two objects and throws a DimensionError if they do not match.
Parameters:
Name Type Description
obj1 Array | number The first object (or number) to compare.
obj2 Array | number The second object (or number) to compare.
Source:
Throws:
if the dimensions of obj1 and obj2 do not match.
Type
DimensionError
Returns:
Type
void

(static) usingNamespace(object) → {void}

Adds the xform namespace to the specified context. This function is intended to allow all members of the xform namespace to be added to the global object or any other object. NOTE: In node.js if you want to add the xform members to the global object you must pass the object named GLOBAL as the argument.
Parameters:
Name Type Description
object Object The object that will gain xform's members.
Source:
Returns:
Type
void