Calculates the determinant of the mat4
determinant of a
Calculates the determinant function the mat4
determinant of a
StaticfromStaticfromStaticfromCreates 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)
out
StaticfromCreates 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);
out
StaticfromStaticfromStaticfromStaticfromStaticfromStaticfrustumGenerates 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
StaticlookGenerates 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.
out
StaticorthoGenerates 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
StaticperspectiveGenerates 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
Statictarget
(getter) Returns the basic array representation of this matrix.