(getter/setter) The a12 value of the matrix.
(getter/setter) The a13 value of the matrix.
(getter/setter) The a14 value of the matrix.
(getter/setter) The a21 value of the matrix.
(getter/setter) The a22 value of the matrix.
(getter/setter) The a23 value of the matrix.
(getter/setter) The a24 value of the matrix.
(getter/setter) The a31 value of the matrix.
(getter/setter) The a32 value of the matrix.
(getter/setter) The a33 value of the matrix.
(getter/setter) The a34 value of the matrix.
(getter/setter) The a41 value of the matrix.
(getter/setter) The a42 value of the matrix.
(getter/setter) The a43 value of the matrix.
(getter/setter) The a44 value of the matrix.
(getter) Returns the basic array representation of this matrix.
Calculates the determinant of the mat4
determinant of a
Calculates the determinant function the mat4
determinant of a
Adds iteration to the object, allowing it to be destructured and iterated upon in various useful ways.
Rotates a mat4 by the given angle around the given axis
the angle to rotate the matrix by
the axis to rotate around
output
Transforms the mat4 by a given amount
The amount to add to the matrixes transformation properties
output
Transforms the mat4 to a given position
The amount to add to the matrixes transformation properties
output
Translates the mat4 to a given position
The amount to add to the matrixes translation properties
output
Calculates a 4x4 matrix from the given quaternion
Quaternion to create matrix from
out
Creates a matrix from a quaternion rotation, vector translation and vector scale This is equivalent to (but much faster than):
mat4.identity(dest);
mat4.translate(dest, vec);
let quatMat = mat4.create();
quat4.toMat4(quat, quatMat);
mat4.multiply(dest, quatMat);
mat4.scale(dest, scale)
Rotation quaternion
Translation vector
Scaling vector
out
Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin This is equivalent to (but much faster than):
mat4.identity(dest);
mat4.translate(dest, vec);
mat4.translate(dest, origin);
let quatMat = mat4.create();
quat4.toMat4(quat, quatMat);
mat4.multiply(dest, quatMat);
mat4.scale(dest, scale)
mat4.translate(dest, negativeOrigin);
Rotation quaternion
Translation vector
Scaling vector
The origin vector around which to scale and rotate
out
Generates a frustum matrix with the given bounds
Left bound of the frustum
Right bound of the frustum
Bottom bound of the frustum
Top bound of the frustum
Near bound of the frustum
Far bound of the frustum
out
Generates a look-at matrix with the given eye position, focal point, and up axis. If you want a matrix that actually makes an object look at another object, you should use targetTo instead.
Position of the viewer
Point the viewer is looking at
vec3 pointing up
out
Generates a orthogonal projection matrix with the given bounds
Left bound of the frustum
Right bound of the frustum
Bottom bound of the frustum
Top bound of the frustum
Near bound of the frustum
Far bound of the frustum
out
Generates a perspective projection matrix with the given bounds. Passing null/undefined/no value for far will generate infinite projection matrix.
Vertical field of view in radians
Aspect ratio. typically viewport width/height
Near bound of the frustum
Far bound of the frustum, can be null or Infinity
out
Generates a matrix that makes something look at something else.
Position of the viewer
vec3 pointing up
out
Generated using TypeDoc
(getter/setter) The a11 value of the matrix.
0