Calculates the Quaternion defining the rotation from the source to the destination.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public static Quaternion Vector3RotationTo(
	Vector3 source,
	Vector3 destination
)

Parameters

source
Type: Vector3
Source Vector3 vector.
destination
Type: Vector3
Destination Vector3 vector.

Return Value

Returns the Quaternion defining the rotation.

See Also