on

fun on(point: Vector2, error: Double = 5.0): Double?(source)

Checks if given point lies on the path of the ShapeContour.

Return

The contour parameter in the range 0 to less than 1 (inclusive of 0, but not 1) only if the point is within the margin of error. Otherwise null will be returned.

Parameters

point

The point to check.

error

Maximum acceptable margin for error.