math.mat4 ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated frommath.d.tsbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
Const · import { mat4 } from '@holostep-configurators/runtime-client/math'; · stable · since 2.0.0 · section 23. /math
4×4 matrices.
| Member | Kind | Summary |
|---|---|---|
identity |
method | The identity matrix. |
compose |
method | The matrix of a pose; omitted fields are identity. |
decompose |
method | The pose of a matrix, with one rotation (a quaternion); a mirroring matrix puts its −1 on scale.x, and a sheared one decomposes approximately, as Pose.scale says. |
multiply |
method | a × b: b applies first. |
invert |
method | The inverse, or null when m can't be inverted. |
export const mat4: {
identity(): Mat4;
compose(pose: PoseInput): Mat4;
decompose(m: Mat4): {
position: Point3;
quaternion: Quat;
scale: Point3;
};
multiply(a: Mat4, b: Mat4): Mat4;
invert(m: Mat4): Mat4 | null;
};
| Rule | Result |
|---|---|
| 1. Neutral name | pass: mat4 names no product |
| 2. A precedent | not recorded: no ledger row (coverage.json) names this member or its owner |
| 3. Two apps, or labs | not recorded: no ledger row names this member or its owner |
| 4. The cheaper fix first | not recorded per member (Appendix B decides it per need) |