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.

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

Parameters:

this

a path

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