Returns the determinant of this matrix. Computational heavy operation, not cached so use with care.
Retrieves the type of this mutable subclass as the name of the runtime class
The type of the mutable
See EventTarget.addEventListener for reference. Works with EventListenerUnified and EventUnified
Optional
_options: boolean | AddEventListenerOptionsRecreates this instance of Serializable with the information from the given Serialization.
See EventTarget.dispatchEvent for reference. Works with with EventUnified
Retrieves the specified attribute types from the metadata of this instance's class.
Collect applicable attributes of the instance and copies of their values in a Mutator-object. By default, a mutator cannot be extended, since extensions are not available in the object the mutator belongs to. A mutator may be reduced by the descendants of Mutable to contain only the properties needed.
Returns an associative array with the same attributes as the given mutator, but with the corresponding types as string-values. Does not recurse into objects! This will return the decorated meta-type instead of the runtime-type of the object, if available.
Collect the attributes of the instance and their values applicable for animation. Basic functionality is identical to getMutator, returned mutator should then be reduced by the subclassed instance
Collect the attributes of the instance and their values applicable for the user interface. Basic functionality is identical to getMutator, returned mutator should then be reduced by the subclassed instance
Adjusts the rotation of this matrix to point the z-axis directly at the given target and tilts it to accord with the given up-Vector3, respectively calculating yaw and pitch. If no up-Vector3 is given, the previous up-Vector3 is used. The pitch may be restricted to the up-vector to only calculate yaw.
Updates the attribute values of the instance according to the state of the mutator. The mutation may be restricted to a subset of the mutator and the event dispatching suppressed. Uses mutateBase, but can be overwritten in subclasses
See EventTarget.removeEventListener for reference. Works with EventListenerUnified and EventUnified
Optional
_options: boolean | AddEventListenerOptionsRotates this matrix by given Vector3 in the order Z, Y, X. Right hand rotation is used, thumb points in axis direction, fingers curling indicate rotation The rotation is appended to already applied transforms, thus multiplied from the right. Set _fromLeft to true to switch and put it in front.
Returns a Serialization of this object.
Adds a translation by the given Vector3 to this matrix. If _local is true, the translation occurs according to the current rotation and scaling of this matrix, otherwise, it occurs according to the parent.
Updates the values of the given mutator according to the current state of the instance
Static
COMPOSITIONStatic
IDENTITYStatic
INVERSEStatic
LOOK_Computes and returns a matrix with the given translation, its z-axis pointing directly at the given target, and a minimal angle between its y-axis and the given up-Vector3, respetively calculating yaw and pitch. The pitch may be restricted to the up-vector to only calculate yaw.
Static
LOOK_Computes and returns a matrix with the given translation, its z-axis pointing directly in the given direction, and a minimal angle between its y-axis and the given up-Vector3. Ideally up should be perpendicular to the given direction.
Static
PRODUCTStatic
PROJECTION_Computes and returns a matrix that applies perspective to an object, if its transform is multiplied by it.
The aspect ratio between width and height of projectionspace.(Default = canvas.clientWidth / canvas.ClientHeight)
The field of view in Degrees. (Default = 45)
The near clipspace border on the z-axis.
The far clipspace border on the z-axis.
The plane on which the fieldOfView-Angle is given
Static
PROJECTION_Computes and returns a matrix that applies orthographic projection to an object, if its transform is multiplied by it.
The positionvalue of the projectionspace's left border.
The positionvalue of the projectionspace's right border.
The positionvalue of the projectionspace's bottom border.
The positionvalue of the projectionspace's top border.
The positionvalue of the projectionspace's near border.
The positionvalue of the projectionspace's far border
Static
RELATIVEStatic
ROTATIONReturns a matrix that rotates coordinates when multiplied by, using the rotation euler angles or unit quaternion given. Rotation occurs around the axis in the order Z-Y-X .
Static
ROTATION_Static
ROTATION_Static
ROTATION_Static
SCALINGStatic
TRANSLATIONStatic
TRANSPOSEStatic
get
Stores a 4x4 transformation matrix and provides operations for it.
Authors
Jascha Karagöl, HFU, 2019 | Jirka Dell'Oro-Friedl, HFU, 2019 | Jonas Plotzky, HFU, 2023