createRotationAroundVector MethodStatic

Return the matrix for rotation of angle around desired axis

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

@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 - undefined | Matrix3d

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

Defined in

Last Updated: 13 May, 2024