External module "math/Matrixes4"
Functions
inverse
- inverse(matrix: Array<number>): Array<number>
-
Parameters
Returns Array<number>
new result matrix.
multiply
- multiply(matrix1: Array<number>, matrix2: Array<number>): Array<number>
-
Parameters
-
matrix1: Array<number>
-
matrix2: Array<number>
Returns Array<number>
multiplyScalar
- multiplyScalar(matrix: Array<number>, scalar: number): Array<number>
-
Parameters
-
matrix: Array<number>
-
scalar: number
Returns Array<number>
multiplyVector4
- multiplyVector4(matrix: Array<number>, vector4: Array<number>): Array<number>
-
Parameters
-
matrix: Array<number>
-
vector4: Array<number>
Returns Array<number>
perspective
- perspective(fieldOfViewInRadians: number, width: number, height: number, near: number, far: number): Array<number>
-
Parameters
-
fieldOfViewInRadians: number
-
width: number
-
height: number
-
near: number
-
far: number
Returns Array<number>
projection
- projection(width: number, height: number): number[]
-
Parameters
-
width: number
-
height: number
Returns number[]
rotation
- rotation(x: number, y: number, z: number): Array<number>
-
Parameters
-
x: number
-
y: number
-
z: number
Returns Array<number>
rotationX
- rotationX(angle: number): Array<number>
-
Parameters
Returns Array<number>
rotationY
- rotationY(angle: number): Array<number>
-
Parameters
Returns Array<number>
rotationZ
- rotationZ(angle: number): Array<number>
-
Parameters
Returns Array<number>
scaling
- scaling(x: number, y: number, z: number): Array<number>
-
Parameters
-
x: number
-
y: number
-
z: number
Returns Array<number>
transformVector
- transformVector(matrix: Array<number>, vector4: Array<number>): Array<number>
-
Parameters
-
matrix: Array<number>
-
vector4: Array<number>
Returns Array<number>
vector4 [x, y, z, w]
translateX
- translateX(matrix: number[], x: number): number[]
-
Parameters
-
matrix: number[]
-
x: number
Returns number[]
translateY
- translateY(matrix: number[], y: number): number[]
-
Parameters
-
matrix: number[]
-
y: number
Returns number[]
translateZ
- translateZ(matrix: number[], z: number): number[]
-
Parameters
-
matrix: number[]
-
z: number
Returns number[]
translation
- translation(x: number, y: number, z: number): Array<number>
-
Parameters
-
x: number
-
y: number
-
z: number
Returns Array<number>
transpose
- transpose(matrix: Array<number>): Array<number>
-
Parameters
Returns Array<number>
new result matrix.
Computes the inverse of a matrix.