Previous Up Next

27.12.4  Rotation in space

See Section 26.14.4 for rotations in the plane.

The rotation command creates a rotation.

Examples

S:=sphere([1,0,0],0.5); r:=rotation(line(point(0,0,0),point(0,0,1)), 2*pi/3); color(S,blue),r(S)
rotation(line(point(0,0,0),point(0,0,1)), 2*pi/3,S)

Previous Up Next