fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Client / Matrix

Type Alias: Matrix

Matrix: [[number, number, number], [number, number, number], [number, number, number], [number, number, number]]

A Matrix type represents a 4x3 matrix, where each row is a tuple of three numbers.

The matrix is typically used in 3D graphics to represent transformations like translation, rotation, and scaling. Each tuple in the matrix corresponds to a vector in 3D space.

Example usage:

const matrix: Matrix = [
  [1, 0, 0],  // forwardVector
  [0, 1, 0],  // rightVector
  [0, 0, 1],  // upVector
  [0, 0, 0]   // position
];

Defined in

client/types/Matrix.ts:22