Page logoMath sketchbook

Documentation for rotateVM

Signature

rotateVM(axis, angle)

Description

The rotateVM() function generates a 4x4 matrix that rotates around the given axis by the given angle (in radians). The axis doesn't need to be normalized.

This function assumes the use of VM multiplication order: vector * matrix.

Variants

  • rotateVM(vector, scalar) -> matrix

Examples

See also