minus

abstract operator fun minus(other: Position): Position

Returns a new Position which is the difference of x and y both Positions. so Position(x = 3, y = 3).minus(Position(x = 2, y = 2)) will be Position(x = 1, y = 1).

Sources

(source)
Link copied to clipboard