withRelativeX

fun withRelativeX(deltaX: Int): Position3D

Creates a new Position3D object representing a position on the same y and y, but with an x offset by the supplied deltaX. Calling this method with deltaX 0 will returnThis this. A positive deltaX will be added, a negative will be subtracted from the original x.

Sources

(source)
Link copied to clipboard