rotation ( angle, axis, center)
rotation ( angle, center)
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.
The object rotation is a function closure.