MathHelperTriangleArea Method
|
Calculates area of a triangle.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public static double TriangleArea(
Vector2 p1,
Vector2 p2,
Vector2 p3
)
Public Shared Function TriangleArea (
p1 As Vector2,
p2 As Vector2,
p3 As Vector2
) As Double
public:
static double TriangleArea(
Vector2 p1,
Vector2 p2,
Vector2 p3
)
static member TriangleArea :
p1 : Vector2 *
p2 : Vector2 *
p3 : Vector2 -> float
STATIC METHOD TriangleArea(
p1 AS Vector2,
p2 AS Vector2,
p3 AS Vector2
) AS REAL8
Parameters
- p1
- Type: DXFReaderNETVector2
First vertex of triangle. - p2
- Type: DXFReaderNETVector2
Second vertex of triangle. - p3
- Type: DXFReaderNETVector2
Third vertex of triangle.
Return Value
Type:
DoubleThe area of triangle.
See Also