Beispiel #1
0
 public double DistanceSquared(LineSegment segment)
 {
     return(DistanceSquared(NearestPoint(segment)));
 }
 /// <summary>
 /// Returns both points (if there are two) on the line segment that lie a given distance from
 /// </summary>
 public Tuple <Point?, Point?> PointAtDistance(LineSegment segment, double distance)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 static public bool AreParallel(LineSegment seg, Ray ray)
 {
     return(Line.AreParallel(seg.UnderlyingLine, ray));
 }
Beispiel #4
0
 static public bool AreParallel(LineSegment seg, Line line)
 {
     return(Line.AreParallel(seg.UnderlyingLine, line));
 }
Beispiel #5
0
 static public bool AreParallel(LineSegment seg1, LineSegment seg2)
 {
     return(Line.AreParallel(seg1.UnderlyingLine, seg2.UnderlyingLine));
 }
Beispiel #6
0
 public double Distance(LineSegment segment)
 {
     return(Math.Sqrt(DistanceSquared(segment)));
 }