Nevron Open Vision Documentation
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
    'Declaration
     
    
    Public Overloads Shared Function Determinant( _
       ByVal ax As System.Double, _
       ByVal ay As System.Double, _
       ByVal bx As System.Double, _
       ByVal by As System.Double, _
       ByVal cx As System.Double, _
       ByVal cy As System.Double _
    ) As System.Double
    'Usage
     
    
    Dim ax As System.Double
    Dim ay As System.Double
    Dim bx As System.Double
    Dim by As System.Double
    Dim cx As System.Double
    Dim cy As System.Double
    Dim value As System.Double
     
    value = NGeometry2D.Determinant(ax, ay, bx, by, cx, cy)
    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