Rotates a plane.
rhinoscriptsyntax.RotatePlane (plane, angle_degees, axis)
rhinoscript.plane.RotatePlane (plane, angle_degees, axis)
plane |
Required. The plane. |
angle_degrees |
Required. Number. The rotation angle in degrees. |
axis |
Required. List of 3 numbers, Point3d, or Vector3d. A non-zero 3-D vector identifying the axis of rotation. |
Plane |
The plane if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
plane = rs.ViewCPlane()
rotated = rs.RotatePlane(plane, 45.0, plane.XAxis)
rs.ViewCPlane( None, rotated )