Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / Utility Class / PointInTriangle Method
The point's X-coordinate
The point's y-coordinate
The first triangle vertex's X-coordinate
The first triangle vertex's y-coordinate
The second triangle vertex's X-coordinate
The second triangle vertex's y-coordinate
The third triangle vertex's X-coordinate
The third triangle vertex's y-coordinate

In This Topic
    PointInTriangle Method
    In This Topic
    Point in triangle test.
    Syntax
    'Declaration
     
    Public Shared Function PointInTriangle( _
       ByVal xP As Double, _
       ByVal yP As Double, _
       ByVal x1 As Double, _
       ByVal y1 As Double, _
       ByVal x2 As Double, _
       ByVal y2 As Double, _
       ByVal x3 As Double, _
       ByVal y3 As Double _
    ) As Boolean
    public static bool PointInTriangle( 
       double xP,
       double yP,
       double x1,
       double y1,
       double x2,
       double y2,
       double x3,
       double y3
    )

    Parameters

    xP
    The point's X-coordinate
    yP
    The point's y-coordinate
    x1
    The first triangle vertex's X-coordinate
    y1
    The first triangle vertex's y-coordinate
    x2
    The second triangle vertex's X-coordinate
    y2
    The second triangle vertex's y-coordinate
    x3
    The third triangle vertex's X-coordinate
    y3
    The third triangle vertex's y-coordinate

    Return Value

    Returns true if the point is inside the triangle.
    See Also