ly.img.android.pesdk.backend.model.chunk / RelativeRectFast / offsetTo

offsetTo

fun offsetTo(newLeft: double, newTop: double): void

Offset the rectangle to a specific (left, top) position, keeping its width and height the same.

Parameters

newLeft - double: The new "left" coordinate for the rectangle

newTop - double: The new "top" coordinate for the rectangle