public final class Matrix4
Immutable 4x4 matrix, column-major, acting on column vectors. a * b applies b first. Coordinates are right-handed; angles are radians. Example: m = Matrix4.translation(1.0, 0.0, 0.0) * Matrix4.scaling(2.0, 2.0, 2.0)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | isIdentityisIdentity as Boolean |
Whether this is exactly the identity matrix, O(1). |
| Modifier and Type | Member | Description |
|---|---|---|
| public | Matrix4 | Copies sixteen column-major elements, or constructs identity. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | at | Reads an element, row/column in [0,3]. |
| public static | lookAt | World-to-camera matrix, camera looks from eye toward target. |
| public static | perspective | Perspective projection (OpenGL depth [-1,1]); vertical angle in radians. |
| public static | rotationrotation(rotation as Rotation3d) as Matrix4 |
Converts a unit quaternion to a rotation matrix. |
| public static | scaling | Scaling matrix; zero scales are permitted for CPU algebra. |
| public | transformNormal | Transforms a surface normal by the inverse transpose and normalizes it. |
| public | transformPoint | Transforms a point including homogeneous division. |
| public static | translation | Translation matrix. |
| public | writeTo | Writes sixteen Float values into caller-owned storage, O(1). |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | operator*(a as Matrix4, b as Matrix4) as Matrix4 | Matrix product. |