toTransform
Converts the Matrix4 instance to a Transform object.
The resulting Transform object encapsulates the position, rotation, and scale information extracted from this matrix. Specifically:
The
positionproperty of the Transform is obtained from thepositionproperty of this matrix, which represents the translation component of the matrix.The
rotationproperty of the Transform is obtained from therotationproperty of this matrix, which is converted to a Quat representing the rotation.The
scaleproperty of the Transform is obtained from thescaleproperty of this matrix, which represents the scaling factors along the local X, Y, and Z axes.
Return
A new Transform object containing the position, rotation, and scale information extracted from this matrix.