M_Rhino_Geometry_Quaternion_SetRotation - mcneel/rhinocommon-api-docs GitHub Wiki

Quaternion.SetRotation Method (Plane, Plane)

Sets the quaternion to the unit quaternion which rotates plane0.xaxis to plane1.xaxis, plane0.yaxis to plane1.yaxis, and plane0.zaxis to plane1.zaxis.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public void SetRotation(
	Plane plane0,
	Plane plane1
)

VB

Public Sub SetRotation ( 
	plane0 As Plane,
	plane1 As Plane
)

Parameters

 

plane0
Type: Rhino.Geometry.Plane
The "from" rotation plane. Origin point is ignored.
plane1
Type: Rhino.Geometry.Plane
The "to" rotation plane. Origin point is ignored.

Remarks

The plane origins are ignored

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Quaternion Structure
SetRotation Overload
Rhino.Geometry Namespace

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