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 fromRotationTranslationScaleOrigin
-
fromRotationTranslationScaleOrigin(
out: mat4,
q: quat,
v: ReadonlyVec3,
s: ReadonlyVec3,
o: ReadonlyVec3,
): mat4Parameters
- out: mat4
mat4 receiving operation result
- q: quat
Rotation quaternion
- v: ReadonlyVec3
Translation vector
- s: ReadonlyVec3
Scaling vector
- o: ReadonlyVec3
The origin vector around which to scale and rotate
Returns mat4
out
- out: mat4
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):