public bool IsLongerThan(LineSegment that)
 {
     return(LengthSquared() > that.LengthSquared());
 }
 public bool isShorterThan(LineSegment that)
 {
     return(LengthSquared() < that.LengthSquared());
 }
 public bool IsEqualLength(LineSegment that)
 {
     return(LengthSquared().Equals(that.LengthSquared()));
 }
 public bool Intersects(LineSegment that)
 {
     return(Intersection(that) != null);
 }
 public static bool PointMembershipTest(Point point, LineSegment segment)
 {
     return(Math.Abs(PointOrientationTest(point, segment)) < DoubleExtensions.TOLERANCE); // == 0
 }
Example #6
0
 public bool IsLeftOf(LineSegment segment)
 {
     return(PointOrientationTest(this, segment) > 0);
 }
Example #7
0
 public bool IsRightOf(LineSegment segment)
 {
     return(PointOrientationTest(this, segment) < 0);
 }