Start » Filter Reference » Path » Path Metrics » PathToPointDistance
Module: | FoundationBasic |
---|
Computes the smallest distance between a path and a point.
Name | Type | Range | Description | |
---|---|---|---|---|
inPoint | Point2D | Input point | ||
inPath | Path | Input path | ||
inResolution | Real | 0.0 - | ||
outDistance | Real | Minimal distance between input path and input point | ||
outConnectingSegment | Segment2D | Segment connecting input path and input point having minimal length |
Description
The operation computes the minimal distance between the inPoint and inPath and, additionally, the outConnectingSegment segment corresponding to the result.
Examples
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty path on input in PathToPointDistance. |
Complexity Level
This filter is available on Basic Complexity Level.
See Also
- PathToPointDistanceProfile – Computes the profile of distances between the specified point and the characteristic points of a path.