コード例 #1
0
 public LineIntersectionResult(Coordinate2 <T> basePoint, Coordinate2 <T> finalPoint)
 {
     if (basePoint == null)
     {
         if (finalPoint == null)
         {
             this.IntersectionType = LineIntersectionType.NoIntersection;
             this.BasePoint        = null;
             this.FinalPoint       = null;
         }
         else
         {
             this.IntersectionType = LineIntersectionType.PointIntersection;
             this.BasePoint        = finalPoint;
             this.FinalPoint       = null;
         }
     }
     else if (finalPoint == null)
     {
         this.IntersectionType = LineIntersectionType.PointIntersection;
         this.BasePoint        = basePoint;
         this.FinalPoint       = null;
     }
     else
     {
         this.IntersectionType = LineIntersectionType.CollinearIntersection;
         this.BasePoint        = basePoint;
         this.FinalPoint       = finalPoint;
     }
 }
コード例 #2
0
 public LineIntersectionResult(Coordinate2 <T> intersectionPoint)
 {
     if (intersectionPoint != null)
     {
         this.IntersectionType = LineIntersectionType.PointIntersection;
     }
     else
     {
         this.IntersectionType = LineIntersectionType.NoIntersection;
     }
     this.BasePoint  = intersectionPoint;
     this.FinalPoint = null;
 }
コード例 #3
0
 public LineIntersectionResult(LineIntersectionType type, Coordinate2 <T> basePoint, Coordinate2 <T> finalPoint)
 {
     this.IntersectionType = type;
     this.BasePoint        = basePoint;
     this.FinalPoint       = finalPoint;
 }
コード例 #4
0
 public LineIntersectionResult()
 {
     this.IntersectionType = LineIntersectionType.NoIntersection;
     this.BasePoint        = null;
     this.FinalPoint       = null;
 }
コード例 #5
0
ファイル: SegmentUtils.cs プロジェクト: OSRS/Oncor_OsrsLegacy
 public LineSegment2IntersectionResult(LineIntersectionType type, Point2 <T> basePoint, Point2 <T> finalPoint)
 {
     this.IntersectionType = type;
     this.BasePoint        = basePoint;
     this.FinalPoint       = finalPoint;
 }