public RectContainsPoint ( |
||
pt | The |
|
Результат | bool |
public static PointF? Intersect(Line l1, Line l2) { var intPoint = IntersectForever(l1, l2); if (intPoint == null) { return null; } // So we know the intersection point were the lines extended forever, we just need to see if the point fits on our source lines. if (l1.RectContainsPoint(intPoint.Value) && l2.RectContainsPoint(intPoint.Value)) { return intPoint; } return null; }
public static PointF?Intersect(Line l1, Line l2) { var intPoint = IntersectForever(l1, l2); if (intPoint == null) { return(null); } // So we know the intersection point were the lines extended forever, we just need to see if the point fits on our source lines. if (l1.RectContainsPoint(intPoint.Value) && l2.RectContainsPoint(intPoint.Value)) { return(intPoint); } return(null); }