Class TInp3DPoint
Three dimensional cartesian point (X, Y, Z coordinates)
Inheritance
object
TInp3DPoint
Namespace: SprutCAMTech.SCPostprocessor
Assembly: SprutCAMTech.SCPostprocessor.dll
Syntax
public sealed class TInp3DPoint : ValueType
Constructors
TInp3DPoint(double, double, double)
Creates new instance of TInp3DPoint with given coordinates X, Y and Z.
Declaration
public TInp3DPoint(double X, double Y, double Z)
Parameters
Type | Name | Description |
---|---|---|
double | X | X coordinate of the point. |
double | Y | Y coordinate of the point. |
double | Z | Z coordinate of the point. |
Properties
this[int]
Returns one of coordinates by it's index [1 .. 3]. Index 1 means X, index 2 means Y, index 3 means Z.
Declaration
public double this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of coordinate [1 .. 3] |
Property Value
Type | Description |
---|---|
double | Returns the coordinate value. |
X
X coordinate of the point
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
double |
Y
Y coordinate of the point
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
double |
Z
Z coordinate of the point
Declaration
public double Z { get; set; }
Property Value
Type | Description |
---|---|
double |
Operators
implicit operator T3DPoint(TInp3DPoint)
Automatic converter of types between this point and type, defined in VecMatrLib.
Declaration
public static implicit operator T3DPoint(TInp3DPoint p)
Parameters
Type | Name | Description |
---|---|---|
TInp3DPoint | p | Point to convert |
Returns
Type | Description |
---|---|
T3DPoint |
implicit operator TInp3DPoint(T3DPoint)
Automatic converter of types between this point and type, defined in VecMatrLib.
Declaration
public static implicit operator TInp3DPoint(T3DPoint p)
Parameters
Type | Name | Description |
---|---|---|
T3DPoint | p | Point to convert |
Returns
Type | Description |
---|---|
TInp3DPoint |