コード例 #1
0
ファイル: Triangle2D.cs プロジェクト: HypahCode/Blueprint
 public bool Intersects(Line2D line)
 {
     return(EdgeAB.SafeIntersect(line) || EdgeBC.SafeIntersect(line) || EdgeCA.SafeIntersect(line));
 }
コード例 #2
0
ファイル: Line2D.cs プロジェクト: HypahCode/Blueprint
        public bool SafeIntersect(Line2D other)
        {
            Vector2D v;

            return(SafeIntersect(other, out v));
        }
コード例 #3
0
ファイル: Line2D.cs プロジェクト: HypahCode/Blueprint
        public bool Intersect(Line2D other)
        {
            Vector2D intersectionPoint;

            return(Intersect(other, out intersectionPoint));
        }
コード例 #4
0
ファイル: Line2D.cs プロジェクト: HypahCode/Blueprint
 // 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)));
 }