Nevron .NET Vision
Nevron.GraphicsCore Namespace / NGeometry2D Class / Determinant Method / Determinant(NPoint,NPoint,NPoint) Method


In This Topic
    Determinant(NPoint,NPoint,NPoint) Method
    In This Topic
    Calculates the signed area of the triangle formed by the given points.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Determinant( _
       ByVal p1 As NPoint, _
       ByVal p2 As NPoint, _
       ByVal p3 As NPoint _
    ) As System.Integer
    'Usage
     
    
    Dim p1 As NPoint
    Dim p2 As NPoint
    Dim p3 As NPoint
    Dim value As System.Integer
     
    value = NGeometry2D.Determinant(p1, p2, p3)
    public static System.int Determinant( 
       NPoint p1,
       NPoint p2,
       NPoint p3
    )

    Parameters

    p1
    p2
    p3
    Remarks

    This method calculates the determinant: | p1.x p1.y 1 | | p2.x p2.y 1 | | p3.x p3.y 1 | Which is actually the signed area of the triangle formed by these 3 points.

    Three points are a counter-clockwise turn if Determinant > 0, clockwise if Determinant < 0, and collinear if Determinant = 0.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also