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; } }
public LineIntersectionResult(Coordinate2 <T> intersectionPoint) { if (intersectionPoint != null) { this.IntersectionType = LineIntersectionType.PointIntersection; } else { this.IntersectionType = LineIntersectionType.NoIntersection; } this.BasePoint = intersectionPoint; this.FinalPoint = null; }
public LineIntersectionResult(LineIntersectionType type, Coordinate2 <T> basePoint, Coordinate2 <T> finalPoint) { this.IntersectionType = type; this.BasePoint = basePoint; this.FinalPoint = finalPoint; }
public LineIntersectionResult() { this.IntersectionType = LineIntersectionType.NoIntersection; this.BasePoint = null; this.FinalPoint = null; }
public LineSegment2IntersectionResult(LineIntersectionType type, Point2 <T> basePoint, Point2 <T> finalPoint) { this.IntersectionType = type; this.BasePoint = basePoint; this.FinalPoint = finalPoint; }