Class TInpRotation
A complex structure that allows you to define rotation (orientation) in three-dimensional space. Depend on a convention of type TInpRotationConvention (outside of this structure) it can be one of the following.
- Different kind of Euler angles.
- Axis-angle representation (rotation vector).
- Quaternion.
- Normal vector.
Namespace: DotnetPostprocessing.SDK
Assembly: DotnetPostprocessing.SDK.dll
Syntax
public sealed class TInpRotation : ValueType
Constructors
TInpRotation(double, double, double, double)
Instantiates a new TInpRotation structure.
Declaration
public TInpRotation(double A, double B, double C, double D)
Parameters
| Type | Name | Description |
|---|---|---|
| double | A | A component of the rotation. The physical meaning depends on the convention. |
| double | B | B component of the rotation. The physical meaning depends on the convention. |
| double | C | C component of the rotation. The physical meaning depends on the convention. |
| double | D | D component of the rotation. The physical meaning depends on the convention. |
Properties
A
A component of the rotation. The physical meaning depends on the convention.
Declaration
public double A { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
B
B component of the rotation. The physical meaning depends on the convention.
Declaration
public double B { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
C
C component of the rotation. The physical meaning depends on the convention.
Declaration
public double C { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
D
D component of the rotation. The physical meaning depends on the convention.
Declaration
public double D { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Operators
implicit operator TRotation(TInpRotation)
Performs implicit conversion between two similar types TRotation and TInpRotation.
Declaration
public static implicit operator TRotation(TInpRotation r)
Parameters
| Type | Name | Description |
|---|---|---|
| TInpRotation | r | Rotation to convert. |
Returns
| Type | Description |
|---|---|
| TRotation |
implicit operator TInpRotation(TRotation)
Performs implicit conversion between two similar types TInpRotation and TRotation.
Declaration
public static implicit operator TInpRotation(TRotation r)
Parameters
| Type | Name | Description |
|---|---|---|
| TRotation | r | Rotation to convert. |
Returns
| Type | Description |
|---|---|
| TInpRotation |