UnitQuaternion Constructor (Double) |
Initializes a set of
UnitQuaternion coordinates from the first 4 consecutive elements in the provided array.
Note that the elements will not be normalized and may represent an invalid unit quaternion.
Namespace:
AGI.Foundation.Coordinates
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public UnitQuaternion(
double[] elements
)
Public Sub New (
elements As Double()
)
public:
UnitQuaternion(
array<double>^ elements
)
new :
elements : float[] -> UnitQuaternion
Parameters
- elements
- Type: SystemDouble
The array of coordinate values.
Exceptions Remarks
For performance reasons, no checks or normalization procedures are performed when creating a
UnitQuaternion from
the given
elements. The surrounding code is responsible for making sure that the given values
represent a unit magnitude. To ensure proper normalization, create a
Quaternion and then use the
Normalize method to create a valid
UnitQuaternion.
See Also