示例#1
0
 public bool Intersects(Line2D line)
 {
     return(EdgeAB.SafeIntersect(line) || EdgeBC.SafeIntersect(line) || EdgeCA.SafeIntersect(line));
 }
示例#2
0
        public bool SafeIntersect(Line2D other)
        {
            Vector2D v;

            return(SafeIntersect(other, out v));
        }
示例#3
0
        public bool Intersect(Line2D other)
        {
            Vector2D intersectionPoint;

            return(Intersect(other, out intersectionPoint));
        }
示例#4
0
 // Returns if line is the same. Checks both directions
 public bool IsPositionEqual(Line2D other)
 {
     return((Start.IsPositionEqual(other.Start)) && (End.IsPositionEqual(other.End)) ||
            (Start.IsPositionEqual(other.End)) && (End.IsPositionEqual(other.Start)));
 }