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(); }
static public bool AreParallel(LineSegment seg, Ray ray) { return(Line.AreParallel(seg.UnderlyingLine, ray)); }
static public bool AreParallel(LineSegment seg, Line line) { return(Line.AreParallel(seg.UnderlyingLine, line)); }
static public bool AreParallel(LineSegment seg1, LineSegment seg2) { return(Line.AreParallel(seg1.UnderlyingLine, seg2.UnderlyingLine)); }
public double Distance(LineSegment segment) { return(Math.Sqrt(DistanceSquared(segment))); }