AlignedConstrainedGetMotion Method (MotionCartesian, MotionCartesian, Int32) |
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: 24.2.419.0 (24.2.419.0)
Syntax public static Motion<UnitQuaternion, Cartesian> GetMotion(
Motion<Cartesian> principal,
Motion<Cartesian> reference,
int order
)
Public Shared Function GetMotion (
principal As Motion(Of Cartesian),
reference As Motion(Of Cartesian),
order As Integer
) As Motion(Of UnitQuaternion, Cartesian)
public:
static Motion<UnitQuaternion, Cartesian> GetMotion(
Motion<Cartesian> principal,
Motion<Cartesian> reference,
int order
)
static member GetMotion :
principal : Motion<Cartesian> *
reference : Motion<Cartesian> *
order : int -> Motion<UnitQuaternion, Cartesian>
Parameters
- principal
- Type: AGI.FoundationMotionCartesian
The principal direction vector with which the X-axis will be aligned. - reference
- Type: AGI.FoundationMotionCartesian
The reference direction vector. The Z-axis will be constrained to minimize the angular separation from this vector. - order
- Type: SystemInt32
The order of the highest derivative to compute. To compute just the rotation, pass 0 for this value. To compute rotational velocity as well, pass 1.
Return Value
Type:
MotionUnitQuaternion,
CartesianThe transformation to the aligned-constrained axes.
See Also