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 ,
System.double ,
System.double ,
System.double ,
System.double ,
System.double
)
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.
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