get_closest_point


Description:

public bool get_closest_point (Point point, float threshold, out unowned PathPoint result, out float distance)

Computes the closest point on the path to the given point and sets the result to it.

If there is no point closer than the given threshold, `FALSE` is returned.

Parameters:

this

a `GskPath`

point

the point

threshold

maximum allowed distance

result

return location for the closest point

distance

return location for the distance

Returns:

`TRUE` if point was set to the closest point on this, `FALSE` if no point is closer than threshold