destack.sh
docstemplatesblog
Language
  1. Setup
  2. TypeScript
  3. TypeScript++
  4. Runtime
  5. Standard Library
  6. Web
  7. Node
  8. Systems
  9. Modules
  10. destack:math
  11. Matrix4
    1. Members
  12. Configuration
  13. Static Analysis
  14. Dynamic Analysis
  15. Deployment
menu
Language
  1. Setup
  2. TypeScript
  3. TypeScript++
  4. Runtime
  5. Standard Library
  6. Web
  7. Node
  8. Systems
  9. Modules
  10. destack:math
  11. Matrix4
    1. Members
  12. Configuration
  13. Static Analysis
  14. Dynamic Analysis
  15. Deployment
Docs/Language/Standard Library/Modules/destack:math
mdtxt

Matrix4

import { Matrix4 } from "destack:math";

Four-by-four matrix in row-major field order.

language/library/src/math/matrix.ds:35:47
1export struct Matrix4<T: Numeric> {2    x: Vector4<T>;3    y: Vector4<T>;4    z: Vector4<T>;5    w: Vector4<T>;6}

Members

x: Vector4<T>

First row.

y: Vector4<T>

Second row.

z: Vector4<T>

Third row.

w: Vector4<T>

Fourth row.

discordxgithub
2026.8.3alpha