Class MinimumClearance.MinClearanceDistance
Hierarchy:
Object
, MinimumClearance.MinClearanceDistance
private static class MinimumClearance.MinClearanceDistance
implements
ItemDistance
Implements the MinimumClearance distance function:
- dist(p1, p2) =
- p1 != p2 : p1.distance(p2)
- p1 == p2 : Double.MAX
- dist(p, seg) =
- p != seq.p1 && p != seg.p2 : seg.distance(p)
- ELSE : Double.MAX
Also computes the values of the nearest points, if any.
-
Authors:
-
Martin Davis