Math
Vectors, quaternions, matrices, and math helpers.
Commonly used
vec33-component floating-point vector used for 3D positions, directions, and RGB color values.quatQuaternion type for representing rotations in 3D space.mat44x4 matrix used for 3D transformations including rotation, scale, translation, and projection.vec22D vector with x and y components, used for 2D positions, directions, and math operations.vec4Four-component float vector used for XYZW coordinates and RGBA color values.
All APIs in this topic
Objects and data
| API | Description |
|---|---|
| mat2 | 2x2 column-major floating-point matrix. |
| mat3 | A 3x3 matrix type supporting common linear algebra operations. |
| mat4 | 4x4 matrix used for 3D transformations including rotation, scale, translation, and projection. |
| MathUtils | Utility class providing common math operations and constants. |
| quat | Quaternion type for representing rotations in 3D space. |
| vec2 | 2D vector with x and y components, used for 2D positions, directions, and math operations. |
| vec3 | 3-component floating-point vector used for 3D positions, directions, and RGB color values. |
| vec4 | Four-component float vector used for XYZW coordinates and RGBA color values. |
| vec4b | A 4-component boolean vector with x/y/z/w and r/g/b/a accessors. |
Related topics
User InterfaceWidgets, layouts, and dialogs for plugin panels; docking, icons, entity pickers, and editor views.Preview & PublishingThe Preview panel and offscreen Lens previews, pushing a Lens to a device, device traces, Connected Lens sessions, and packaging projects and runtime bundles.AssetsEvery asset type a plugin can create or edit, materials and passes, animation clips, Gaussian splats, and the Asset Library.