withRelative

open override fun withRelative(translate: Position): Position

Creates a new Position object that is translated by an amount of x and y specified by another Position. Same as calling withRelativeY(translate.getYLength()).withRelativeX(translate.getXLength()).

Sources

(source)
Link copied to clipboard