next | previous | forward | backward | up | top | index | toc | Macaulay2 website
VectorGraphics :: rotation

rotation -- Computes a rotation matrix

Synopsis

Description

Produces a rotation encoded as a 4x4 matrix that can be used as an argument to TransformMatrix or AnimMatrix. For a 3d rotation, use 3d vectors for axis and center. For a 2d rotation, use a 2d vector for the center. In both cases, the center is optional.

For the programmer

The object rotation is a function closure.