M_Rhino_Geometry_Transform_Rotation - mcneel/rhinocommon-api-docs GitHub Wiki

Transform.Rotation 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) Version: Rhino 6.0

Syntax

C#

public static Transform Rotation(
	Vector3d startDirection,
	Vector3d endDirection,
	Point3d rotationCenter
)

VB

Public Shared Function Rotation ( 
	startDirection As Vector3d,
	endDirection As Vector3d,
	rotationCenter As Point3d
) As Transform

Parameters

 

startDirection
Type: Rhino.Geometry.Vector3d
A start direction.
endDirection
Type: Rhino.Geometry.Vector3d
An end direction.
rotationCenter
Type: Rhino.Geometry.Point3d
A rotation center.

Return Value

Type: Transform
A transformation matrix which rotates geometry around an anchor point.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Transform Structure
Rotation Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️