Creates a new identity mat4
类名
compose
quaternion
position
scale
Optionalp: Vector3
[pivot]
this
decompose
quaternion
position
scale
Optionalp: Vector3
[pivot]
this
Calculates the determinant of this
this
Returns Frobenius norm of a mat4
Frobenius norm
从数组赋值
数组
数组偏移值
this
Calculates a 4x4 matrix from the given quaternion
Quaternion to create matrix from
this
Creates a matrix from a given angle around a given axis
the angle to rotate the matrix by
the axis to rotate around
this
Creates a matrix from a quaternion rotation and vector translation
Rotation quaternion
Translation vector
this
Creates a matrix from a quaternion rotation, vector translation and vector scale
Rotation quaternion
Translation vector
Scaling vector
this
Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin
Rotation quaternion
Translation vector
Scaling vector
The origin vector around which to scale and rotate
OptionalnotCallUpdate: boolean
notCallUpdate
this
Creates a matrix from a vector translation
Translation vector
this
Creates a matrix from the given angle around the X axis
the angle to rotate the matrix by
this
Creates a matrix from the given angle around the Y axis
the angle to rotate the matrix by
this
Creates a matrix from the given angle around the Z axis
the angle to rotate the matrix by
this
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
this
Returns a quaternion representing the rotational component of a transformation matrix. If a matrix is built with fromRotationTranslation, the returned quaternion will be the same as the quaternion originally supplied.
Quaternion to receive the rotation component
out
Returns the scaling factor component of a transformation matrix. If a matrix is built with fromRotationTranslationScale with a normalized Quaternion paramter, the returned vector will be the same as the scaling vector originally supplied.
Vector to receive scaling factor component
out
Set this to the identity matrix
this
更新的回调
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
this
Generates a perspective projection matrix with the given bounds
Vertical field of view in radians
Aspect ratio. typically viewport width/height
Near bound of the frustum
Far bound of the frustum
this
Generates a perspective projection matrix with the given field of view.
Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees
Near bound of the frustum
Far bound of the frustum
this
Rotates this by the given angle
the angle to rotate the matrix by
the axis to rotate around
this
Rotates this by the given angle around the X axis
the angle to rotate the matrix by
this
Rotates this by the given angle around the Y axis
the angle to rotate the matrix by
this
Rotates this by the given angle around the Z axis
the angle to rotate the matrix by
this
Scales the mat3 by the dimensions in the given vec2
the vec3 to scale the matrix by
this
Set the components of a mat3 to the given values
this
转换到数组
数组
数组偏移值
Transpose the values of this
this
4x4 矩阵,具有 onUpdate 回调