withX

open override fun withX(x: Int): Position

Creates a new Position object representing a position with the same y index as this but with a supplied x index.

Sources

(source)
Link copied to clipboard