GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / GetNearestIntersectionPoint Method / GetNearestIntersectionPoint(PointF,PointF,PointF) Method
the point we are looking to be closest to, on the line formed with p2
forms a line with p1
the point of this object that is closest to p1 and that is on the infinite line from p1 to p2
In This Topic
    GetNearestIntersectionPoint(PointF,PointF,PointF) Method
    In This Topic
    Find the closest point in this object to a given point that is on a line from that point.
    Syntax
    public virtual bool GetNearestIntersectionPoint( 
       PointF p1,
       PointF p2,
       out PointF result
    )

    Parameters

    p1
    the point we are looking to be closest to, on the line formed with p2
    p2
    forms a line with p1
    result
    the point of this object that is closest to p1 and that is on the infinite line from p1 to p2

    Return Value

    true if the infinite line does intersect with this object; false otherwise
    See Also