withY

open override fun withY(y: Int): Position

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

Sources

(source)
Link copied to clipboard