Exemple #1
0
 public static bool PointLineSegment2(
     double segmentAX,
     double segmentAY,
     double segmentBX,
     double segmentBY,
     double pointX,
     double pointY)
 {
     return(DistanceToLineSegmentTests.DistanceToSegment(pointX, pointY, segmentAX, segmentAY, segmentBX, segmentBY) < Epsilon);
 }
 public static bool PointNearSegment1(double px, double py, double x1, double y1, double x2, double y2, double closeDistance)
 {
     return(DistanceToLineSegmentTests.DistanceToSegment(px, py, x1, y1, x2, y2) <= closeDistance);
 }