Macaulay2 » Documentation
Packages » VectorGraphics :: rotation
next | previous | forward | backward | up | index | toc

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.