Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NGeometry2D Class / Determinant Method / Determinant(NPointI,NPointI,NPointI) Method
Triangle point 1.
Triangle point 2.
Triangle point 3.


In This Topic
    Determinant(NPointI,NPointI,NPointI) Method
    In This Topic
    Calculates the oriented area of the triangle formed by the given points.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Determinant( _
       ByVal a As NPointI, _
       ByVal b As NPointI, _
       ByVal c As NPointI _
    ) As System.Integer
    'Usage
     
    
    Dim a As NPointI
    Dim b As NPointI
    Dim c As NPointI
    Dim value As System.Integer
     
    value = NGeometry2D.Determinant(a, b, c)
    public static System.int Determinant( 
       NPointI a,
       NPointI b,
       NPointI c
    )

    Parameters

    a
    Triangle point 1.
    b
    Triangle point 2.
    c
    Triangle point 3.

    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