Skip to main content

Function: rotationMatrix()

rotationMatrix(angle, axis, homogeneous): number[][]

Defined in: src/utils/spaceOps.ts:125

Rotation matrix in R^3 about axis by angle (right-handed, Rodrigues' formula — matches ManimCE/scipy Rotation.from_rotvec). When homogeneous is true, returns a 4x4 matrix.

Parameters​

angle​

number

axis​

number[]

homogeneous​

boolean = false

Returns​

number[][]