RhinoCommon API
TransformRotation Method (Double, Vector3d, Point3d) |
Constructs a new rotation transformation with specified angle, rotation center and rotation axis.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Transform Rotation( double angleRadians, Vector3d rotationAxis, Point3d rotationCenter )
Public Shared Function Rotation ( angleRadians As Double, rotationAxis As Vector3d, rotationCenter As Point3d ) As Transform
Parameters
- angleRadians
- Type: SystemDouble
Angle (in Radians) of the rotation. - rotationAxis
- Type: Rhino.GeometryVector3d
Axis direction of rotation operation. - rotationCenter
- Type: Rhino.GeometryPoint3d
Center point of rotation. Rotation axis is vertical.
Return Value
Type: TransformA transformation matrix which rotates geometry around an anchor point.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8