Package: gsk
Function gsk:path-closest-point
Lambda Listgsk:path-closest-point (path point threshold) Syntax(gsk:path-closest-point path point threshold) => result, distance Argumentspath -- a gsk:path instance point -- a graphene:point-t instance threshold -- a float with the maximum allowed distance Return ValueDetails 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