Package: gsk

Function gsk:path-closest-point

Lambda List

gsk:path-closest-point (path point threshold)

Syntax

(gsk:path-closest-point path point threshold) => result, distance

Arguments

path -- a gsk:path instance
point -- a graphene:point-t instance
threshold -- a float with the maximum allowed distance

Return Value

result -- a gsk:path-point instance with the closest point distance -- a float with the distance

Details

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, nil is returned.

Since 4.14
 

See also

2024-11-12