For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Function fromRotation
-
Parameters
- out: mat4
mat4 receiving operation result
- rad: number
the angle to rotate the matrix by
- axis: ReadonlyVec3
the axis to rotate around
Returns mat4
out
- out: mat4
Creates a matrix from a given angle around a given axis This is equivalent to (but much faster than):