AxesAlignedConstrainedComputeTransformation Method (Cartesian, Cartesian) |
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.2.419.0 (24.2.419.0)
Syntax public static UnitQuaternion ComputeTransformation(
Cartesian principal,
Cartesian reference
)
Public Shared Function ComputeTransformation (
principal As Cartesian,
reference As Cartesian
) As UnitQuaternion
public:
static UnitQuaternion ComputeTransformation(
Cartesian principal,
Cartesian reference
)
static member ComputeTransformation :
principal : Cartesian *
reference : Cartesian -> UnitQuaternion
Parameters
- principal
- Type: AGI.Foundation.CoordinatesCartesian
The principal direction vector with which the X-axis will be aligned. - reference
- Type: AGI.Foundation.CoordinatesCartesian
The reference direction vector. The Z-axis will be constrained to minimize the angular separation from this vector.
Return Value
Type:
UnitQuaternionThe transformation to the aligned-constrained axes.
See Also