Skip to main content

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.

ParameterTypeDescription
lhsPositionThe position from which to subtract.
rhsPositionThe 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.