RhinoCommon API
TransformRotation Method (Vector3d, Vector3d, Point3d) |
Constructs a new rotation transformation with start and end directions and rotation center.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Transform Rotation( Vector3d startDirection, Vector3d endDirection, Point3d rotationCenter )
Public Shared Function Rotation ( startDirection As Vector3d, endDirection As Vector3d, rotationCenter As Point3d ) As Transform
Parameters
- startDirection
- Type: Rhino.GeometryVector3d
A start direction. - endDirection
- Type: Rhino.GeometryVector3d
An end direction. - rotationCenter
- Type: Rhino.GeometryPoint3d
A rotation center.
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.14