getClosestCorner

open fun getClosestCorner(x: Float, y: Float): Int

Return

The index of the closest corner to the given point

Parameters

x

The horizontal coordinate of a point, relative to the width of an image.

y

The vertical coordinate of a point, relative to the height of an image.