distances

fun distances(point: Vector2, searchFrom: CompositionNode = composition.root as GroupNode): List<ShapeNodeNearestContour>

Find distances to each contour in the composition tree (or starting node)

Return

a sorted list of ShapeNodeNearestContour describing distance to every contour

Parameters

point

the query point

searchFrom

a node from which the search starts, defaults to composition root

fun CompositionNode.distances(point: Vector2): List<ShapeNodeNearestContour>