UnitQuaternion Constructor (Double, Double, Double, Double) |
Initializes a set of
UnitQuaternion coordinates from the provided values.
Namespace:
AGI.Foundation.Coordinates
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic UnitQuaternion(
double w,
double x,
double y,
double z
)
Public Sub New (
w As Double,
x As Double,
y As Double,
z As Double
)
public:
UnitQuaternion(
double w,
double x,
double y,
double z
)
new :
w : float *
x : float *
y : float *
z : float -> UnitQuaternionParameters
- w
- Type: SystemDouble
The W coordinate. - x
- Type: SystemDouble
The X coordinate. - y
- Type: SystemDouble
The Y coordinate. - z
- Type: SystemDouble
The Z coordinate.
Exceptions| Exception | Condition |
|---|
| DivideByZeroException |
The magnitude of the provided coordinates must not be zero.
|
| NotFiniteNumberException |
The magnitude of the provided coordinates must not be infinite.
|
RemarksThe given values will be normalized to ensure a unit magnitude.
See Also