Position Struct
Namespace: GHIElectronics.TinyCLR.Devices.Usb · Assembly: GHIElectronics.TinyCLR.Devices.Usb
Represents the a generic position.
public struct Position
Properties
X
public int X { get; set; }
The X coordinate.
Y
public int Y { get; set; }
The Y coordinate.
Z
public int Z { get; set; }
The Z coordinate.
Methods
-(Position lhs, Position rhs)
public static Position operator -(Position lhs, Position rhs)
Subtracts one position from another.
| Parameter | Type | Description |
|---|---|---|
lhs | Position | The position from which to subtract. |
rhs | Position | The position to subtract. |
Returns Position operator — The new positon.
ToString()
public override string ToString()
Returns a string representation of the position.
Returns string — The position.