Class 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.
Inheritance
Namespace: SprutCAMTech.SCPostprocessor
Assembly: SprutCAMTech.SCPostprocessor.dll
Syntax
public sealed class TInpLocation : ValueType
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 |
---|---|---|
double | X | |
double | Y | |
double | Z | |
double | A | |
double | B | |
double | C | |
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 { get; set; }
Property Value
Type | Description |
---|---|
TInpRotation |
P
Position - point P(X, Y, Z) in three-dimensional space.
Declaration
public TInp3DPoint P { get; set; }
Property Value
Type | Description |
---|---|
TInp3DPoint |
Operators
implicit operator TLocation(TInpLocation)
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 operator TInpLocation(TLocation)
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 |