Transform.Rotation Method (Vector3d, Vector3d, Point3d)
Click or drag to resize

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)
Syntax
public static Transform Rotation(
	Vector3d startDirection,
	Vector3d endDirection,
	Point3d rotationCenter
)

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: Transform
A transformation matrix which rotates geometry around an anchor point.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.7
See Also