Struct TInp2DPoint
Two dimensional cartesian point with X and Y coordinates.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SprutTechnology.SCPostprocessor
Assembly: SCPostprocessor.dll
Syntax
public struct TInp2DPoint
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 |
---|---|---|
System.Double | X | |
System.Double | Y |
Properties
Item[Int32]
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 |
---|---|---|
System.Int32 | index | Index of coordinate [1 .. 2] |
Property Value
Type | Description |
---|---|
System.Double | Returns the coordinate value. |
X
X coordinate of the point.
Declaration
public double X { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Y
Y coordinate of the point.
Declaration
public double Y { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Operators
Implicit(TInp2DPoint to T2DPoint)
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(T2DPoint to TInp2DPoint)
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 |