Click or drag to resize

Transform2dRotation Method (Vector2d, Vector2d, Point2d)

Constructs the rotation that maps one direction onto another while fixing a rotation center.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static Transform2d Rotation(
	Vector2d startDirection,
	Vector2d endDirection,
	Point2d rotationCenter
)

Parameters

startDirection
Type: Rhino.GeometryVector2d
A nonzero direction. Its length is ignored.
endDirection
Type: Rhino.GeometryVector2d
A nonzero direction. Its length is ignored.
rotationCenter
Type: Rhino.GeometryPoint2d
The fixed point of the rotation.

Return Value

Type: Transform2d
A rotation transformation, or Transform2d.Nan if either direction is zero.
See Also