Struct TInpLocation
A complex structure that allows you to define location of some object in three-dimensional space. It represents combination of position P(X, Y, Z) and rotation (orientation) N(A, B, C, D) in three-dimensional space. Depend on a convention of type TInpRotationConvention (outside of this structure) orientation can be one of the following.
- Different kind of Euler angles.
- Axis-angle representation (rotation vector).
- Quaternion.
- Normal vector.
Inherited Members
Namespace: SprutTechnology.SCPostprocessor
Assembly: SCPostprocessor.dll
Syntax
public struct TInpLocation
Constructors
TInpLocation(TInp3DPoint, TInpRotation)
Instantiates a new TInpLocation structure with the given position P(X, Y, Z) and Rotation N(A, B, C, D).
Declaration
public TInpLocation(TInp3DPoint P, TInpRotation N)
Parameters
Type | Name | Description |
---|---|---|
TInp3DPoint | P | Position - point P(X, Y, Z) in three-dimensional space. |
TInpRotation | N | Rotation (orientation) - N(A, B, C, D) in three-dimensional space. The physical meaning depends on the convention. |
TInpLocation(Double, Double, Double, Double, Double, Double, Double)
Instantiates a new TInpLocation structure with the given components X, Y, Z, A, B, C, D.
Declaration
public TInpLocation(double X, double Y, double Z, double A, double B, double C, double D)
Parameters
Type | Name | Description |
---|---|---|
System.Double | X | |
System.Double | Y | |
System.Double | Z | |
System.Double | A | |
System.Double | B | |
System.Double | C | |
System.Double | D |
Properties
N
Rotation (orientation) - N(A, B, C, D) in three-dimensional space. The physical meaning depends on the convention.
Declaration
public TInpRotation N { readonly get; set; }
Property Value
Type | Description |
---|---|
TInpRotation |
P
Position - point P(X, Y, Z) in three-dimensional space.
Declaration
public TInp3DPoint P { readonly get; set; }
Property Value
Type | Description |
---|---|
TInp3DPoint |
Operators
Implicit(TInpLocation to TLocation)
Performs implicit conversion between two similar types TInpLocation and TLocation.
Declaration
public static implicit operator TLocation(TInpLocation lc)
Parameters
Type | Name | Description |
---|---|---|
TInpLocation | lc | Location to convert. |
Returns
Type | Description |
---|---|
TLocation |
Implicit(TLocation to TInpLocation)
Performs implicit conversion between two similar types TLocation and TInpLocation.
Declaration
public static implicit operator TInpLocation(TLocation lc)
Parameters
Type | Name | Description |
---|---|---|
TLocation | lc | Location to convert. |
Returns
Type | Description |
---|---|
TInpLocation |