createRotationAroundVector MethodStatic

Return the matrix for rotation of angle around desired axis

createRotationAroundVector(axis: Vector3d, angle: Angle, result?: Matrix3d): Matrix3d | undefined

@returns the rotation matrix or undefined (if axis magnitude is near zero).

Parameter Type Description
axis Vector3d the axis of rotation
angle Angle the angle of rotation
result Matrix3d caller-allocated matrix (optional)

Returns - Matrix3d | undefined

the rotation matrix or undefined (if axis magnitude is near zero).

Defined in

Last Updated: 27 May, 2026