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. Quaternion
    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. Quaternion
    1. Members
  12. Configuration
  13. Static Analysis
  14. Dynamic Analysis
  15. Deployment
Docs/Language/Standard Library/Modules/destack:math
mdtxt

Quaternion

import { Quaternion } from "destack:math";

Quaternion rotation value.

language/library/src/math/quaternion.ds:9:21
1export struct Quaternion<T: Float> {2    x: T;3    y: T;4    z: T;5    w: T;6}

Members

x: T

The vector x component.

y: T

The vector y component.

z: T

The vector z component.

w: T

The scalar component.

discordxgithub
2026.8.3alpha