move

open fun move(cornerIndex: Int, dx: Float, dy: Float)

Move a specific corner by a fixed distance.

Parameters

cornerIndex

The index of the corner to move. Must be between 0 and 3.

dx

Horizontal shift of the corner. Must be between 0 and 1 and relative to the width of the image.

dy

Vertical shift of the corner. Must be between 0 and 1 and relative to the height of the image.