Exemplo n.º 1
0
 public double DistanceSquared(LineSegment segment)
 {
     return(DistanceSquared(NearestPoint(segment)));
 }
Exemplo n.º 2
0
 /// <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();
 }
Exemplo n.º 3
0
 static public bool AreParallel(LineSegment seg, Ray ray)
 {
     return(Line.AreParallel(seg.UnderlyingLine, ray));
 }
Exemplo n.º 4
0
 static public bool AreParallel(LineSegment seg, Line line)
 {
     return(Line.AreParallel(seg.UnderlyingLine, line));
 }
Exemplo n.º 5
0
 static public bool AreParallel(LineSegment seg1, LineSegment seg2)
 {
     return(Line.AreParallel(seg1.UnderlyingLine, seg2.UnderlyingLine));
 }
Exemplo n.º 6
0
 public double Distance(LineSegment segment)
 {
     return(Math.Sqrt(DistanceSquared(segment)));
 }