Transform.Rotation Method (Vector3d, Vector3d, Point3d)

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
)
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: 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.14
See Also