Class TInpQuaternion
Quaternion q(X, Y, Z, W) - determines the rotation (orientation) in a three-dimensional space.
Inheritance
object
TInpQuaternion
Namespace: DotnetPostprocessing.SDK
Assembly: DotnetPostprocessing.SDK.dll
Syntax
public sealed class TInpQuaternion : ValueType
Constructors
TInpQuaternion(double, double, double, double)
Instantiates a new quaternion with the given components (X, Y, Z, W).
Declaration
public TInpQuaternion(double X, double Y, double Z, double W)
Parameters
Type | Name | Description |
---|---|---|
double | X | X component of the quaternion. |
double | Y | Y component of the quaternion. |
double | Z | Z component of the quaternion. |
double | W | W component of the quaternion. |
Properties
W
W component of the quaternion.
Declaration
public double W { get; set; }
Property Value
Type | Description |
---|---|
double |
X
X component of the quaternion.
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
double |
Y
Y component of the quaternion.
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
double |
Z
Z component of the quaternion.
Declaration
public double Z { get; set; }
Property Value
Type | Description |
---|---|
double |
Operators
implicit operator TQuaternion(TInpQuaternion)
Performs implicit conversion between two similar types TQuaternion and TInpQuaternion.
Declaration
public static implicit operator TQuaternion(TInpQuaternion q)
Parameters
Type | Name | Description |
---|---|---|
TInpQuaternion | q | Quaternion to convert. |
Returns
Type | Description |
---|---|
TQuaternion |
implicit operator TInpQuaternion(TQuaternion)
Performs implicit conversion between two similar types TInpQuaternion and TQuaternion.
Declaration
public static implicit operator TInpQuaternion(TQuaternion q)
Parameters
Type | Name | Description |
---|---|---|
TQuaternion | q | Quaternion to convert. |
Returns
Type | Description |
---|---|
TInpQuaternion |