NevronOpenVision
Nevron.Nov.Graphics Namespace / NGeometry2D Class / Determinant Method / Determinant(Double,Double,Double,Double,Double,Double) Method
X coordinate of point a.
Y coordinate of point a.
X coordinate of point b.
Y coordinate of point b.
X coordinate of point c.
Y coordinate of point c.
In This Topic
    Determinant(Double,Double,Double,Double,Double,Double) Method
    In This Topic
    Calculates the oriented area of the triangle formed by the given points.
    Syntax
    public static System.double Determinant( 
       System.double ax,
       System.double ay,
       System.double bx,
       System.double by,
       System.double cx,
       System.double cy
    )

    Parameters

    ax
    X coordinate of point a.
    ay
    Y coordinate of point a.
    bx
    X coordinate of point b.
    by
    Y coordinate of point b.
    cx
    X coordinate of point c.
    cy
    Y coordinate of point c.

    Return Value

    The oriented area of the triangle. If the returned value is positive -> the triplet is counter-clockwise oriented (CCW). If the returned value is negative -> the triplet is clockwise oriented (CW). If the returned value equals zero -> the triplet is collinear.
    Remarks
    The oriented area of the triangle is calculated with the following determinant: | a.x a.y 1 | | b.x b.y 1 | | c.x c.y 1 |
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also