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


In This Topic
    Determinant(NPointF,NPointF,NPointF) 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 NPointF, _
       ByVal p2 As NPointF, _
       ByVal p3 As NPointF _
    ) As System.Single
    'Usage
     
    
    Dim p1 As NPointF
    Dim p2 As NPointF
    Dim p3 As NPointF
    Dim value As System.Single
     
    value = NGeometry2D.Determinant(p1, p2, p3)
    public static System.float Determinant( 
       NPointF p1,
       NPointF p2,
       NPointF 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