Click or drag to resize

AlignedConstrainedGetMotion Method (UnitCartesian, UnitCartesian)

Given a principal and reference vector expressed in the same set of axes, computes a transformation that will take a vector expressed in that set of axes and expresses it in the aligned-constrained axes.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 23.1.416.0 (23.1.416.0)
public static UnitQuaternion GetMotion(
	UnitCartesian principal,
	UnitCartesian reference


Type: AGI.Foundation.CoordinatesUnitCartesian
The principal direction vector with which the X-axis will be aligned.
Type: AGI.Foundation.CoordinatesUnitCartesian
The reference direction vector. The Z-axis will be constrained to minimize the angular separation from this vector.

Return Value

Type: UnitQuaternion
The transformation to the aligned-constrained axes.
See Also