Skip to content

CSMath.Transform

Albert Domenech edited this page Aug 26, 2025 · 3 revisions

Transform Class

Contains the information for translate/scale/rotation or transform matrix to apply to a geometric shape.

Definition

Namespace: CSMath

C#

public class Transform

Properties

Returns Name Summary
XYZ EulerRotation Rotation in Euler angles, the value is in radians.
Matrix4 Matrix Transform matrix.
Quaternion Quaternion Rotation represented in quaternion form.
XYZ Scale Scale applied in the transformation.
XYZ Translation Rotation in Euler angles, the value is in radians.

Methods

Returns Name Summary
XYZ ApplyRotation(CSMath.XYZ)
XYZ ApplyScale(CSMath.XYZ)
XYZ ApplyTransform(CSMath.XYZ, System.Boolean) Apply transform to a .
XYZ ApplyTranslation(CSMath.XYZ)
Boolean TryDecompose(CSMath.XYZ@, CSMath.XYZ@, CSMath.Quaternion@) Try to decompose the transform into it's components.
Clone this wiki locally