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 single float for the maximum allowed distance
result -- a gsk:path-point instance for the closest point
distance -- a single float for 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

2025-08-02