Class TInp2DPoint
Two dimensional cartesian point with X and Y coordinates.
Inheritance
object
TInp2DPoint
Namespace: DotnetPostprocessing.SDK
Assembly: DotnetPostprocessing.SDK.dll
Syntax
public sealed class TInp2DPoint : ValueType
Constructors
TInp2DPoint(double, double)
Creates new instance of TInp2DPoint with given X, Y coordinates.
Declaration
public TInp2DPoint(double X, double Y)
Parameters
Type | Name | Description |
---|---|---|
double | X | |
double | Y |
Properties
this[int]
Returns one of coordinates by it's index [1 .. 2]. Index 1 means X, index 2 means Y.
Declaration
public double this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of coordinate [1 .. 2] |
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 |
Operators
implicit operator T2DPoint(TInp2DPoint)
Automatic converter of types between this point and type, defined in VecMatrLib.
Declaration
public static implicit operator T2DPoint(TInp2DPoint p)
Parameters
Type | Name | Description |
---|---|---|
TInp2DPoint | p | Point to convert |
Returns
Type | Description |
---|---|
T2DPoint |
implicit operator TInp2DPoint(T2DPoint)
Automatic converter of types between this point and type, defined in VecMatrLib.
Declaration
public static implicit operator TInp2DPoint(T2DPoint p)
Parameters
Type | Name | Description |
---|---|---|
T2DPoint | p | Point to convert |
Returns
Type | Description |
---|---|
TInp2DPoint |