Click or drag to resize

AxesAlignedConstrainedComputeTransformation Method (Cartesian, AxisIndicator, Cartesian, AxisIndicator)

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.Geometry
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
public static UnitQuaternion ComputeTransformation(
	Cartesian principal,
	AxisIndicator principalAxis,
	Cartesian reference,
	AxisIndicator referenceAxis


Type: AGI.Foundation.CoordinatesCartesian
The principal direction vector with which the principalAxis will be aligned.
Type: AGI.Foundation.CoordinatesAxisIndicator
The axis along which the principal vector is aligned.
Type: AGI.Foundation.CoordinatesCartesian
The reference direction vector. The referenceAxis will be constrained to minimize the angular separation from this vector.
Type: AGI.Foundation.CoordinatesAxisIndicator
The axis against which the reference vector is constrained.

Return Value

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