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
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!
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.
Adjusts the rotation of this matrix to align the z-axis with the given direction and tilts it to accord with the given up-Vector3. Up should be perpendicular to the given direction. If no up-vector is provided, (0, 1, 0) is used.
Multiply this matrix with the given matrix
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 | AddEventListenerOptionsRotate 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.
Sets the elements of this matrix to the values of the given matrix
Updates the values of the given mutator according to the current state of the instance
Static
CONSTRUCTIONStatic
IDENTITYStatic
INVERSIONStatic
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
MULTIPLICATIONStatic
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