Ejemplo n.º 1
0
 public bool IsLongerThan(LineSegment that)
 {
     return(LengthSquared() > that.LengthSquared());
 }
Ejemplo n.º 2
0
 public bool isShorterThan(LineSegment that)
 {
     return(LengthSquared() < that.LengthSquared());
 }
Ejemplo n.º 3
0
 public bool IsEqualLength(LineSegment that)
 {
     return(LengthSquared().Equals(that.LengthSquared()));
 }
Ejemplo n.º 4
0
 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
 }
Ejemplo n.º 6
0
 public bool IsLeftOf(LineSegment segment)
 {
     return(PointOrientationTest(this, segment) > 0);
 }
Ejemplo n.º 7
0
 public bool IsRightOf(LineSegment segment)
 {
     return(PointOrientationTest(this, segment) < 0);
 }