withRelativeX

abstract fun withRelativeX(delta: Int): Position

Creates a new Position object representing a position on the same y, but with a x offset by a supplied value. Calling this method with delta 0 will returnThis this, calling it with a positive delta will returnThis a grid position <code>delta</code> number of x to the right and for negative numbers the same to the left.

Sources

(source)
Link copied to clipboard