Matrix in Anark Studio 2.5

A 4x4 matrix.

Inherits from:

Instance Properties

name type description
prototype Object The prototype for a class. [from Object]
constructor Object A reference to the constructor class for the current object instance. [from Object]
_11 Number
_12 Number
_13 Number
_14 Number
_21 Number
_22 Number
_23 Number
_24 Number
_31 Number
_32 Number
_33 Number
_34 Number
_41 Number
_42 Number
_43 Number
_44 Number

Instance Methods

name returns description
toLocaleString() String For most objects, the same as toString() unless explicitly overridden. [from Object]
valueOf() String Returns the internal this value of the object. [from Object]
hasOwnProperty() Boolean Determines if the object/instance itself has the named property or method. [from Object]
isPrototypeOf() Boolean Determines if the calling object prototype is in the inheritance chain for the supplied argument. [from Object]
propertyIsEnumerable() Boolean Determines if the object/instance itself has a property or method of the supplied name which will appear in a for (prop in obj) enumeration. [from Object]
transpose() (none) Transpose the matrix.
identity() (none) Turn to an identity matrix.
invert() (none) Invert the matrix.
scale() (none) Scale the matrix.
translate() (none) Translate the matrix.
rotate() (none) Rotate the matrix.
multiply() (none) Multiply two matrices.
isIdentity() Boolean Is this an identity matrix?
copy() Matrix Return a copy of the matrix object.
toString() String Returns a string representation of the object. [from Object]

Description

A matrix is an advanced mathematical structure used to describe the local space of an object and to transform objects within the space. In Anark Studio, matrices are 4 x 4 arrays. The Matrix constructor creates an identity matrix. An identity matrix is a square matrix with its diagonal elements equal to 1 and its off-diagonal elements equal to 0. It performs for matrix arithmetic what the number 1 performs for the arithmetic of numbers.

Properties that are a Matrix

name object description
lastGlobalTransform Node (read only) Cumulative transformation applied to this object.

Methods that return a Matrix

name of object description
copy() Matrix Return a copy of the matrix object.

Arguments that are a Matrix

name in method of object description
transformMatrix transform() Vector The transformation matrix.
transformMatrix transform() Rotation The transformation matrix.
otherMatrix multiply() Matrix The matrix to be multiplied wi