 | Vector2FArea Method |
Returns a positive number if c is to the left of the line going from a to b.
Namespace: Slash.Math.Algebra.VectorsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static float Area(
Vector2F a,
Vector2F b,
Vector2F c
)
Public Shared Function Area (
a As Vector2F,
b As Vector2F,
c As Vector2F
) As Single
public:
static float Area(
Vector2F a,
Vector2F b,
Vector2F c
)
static member Area :
a : Vector2F *
b : Vector2F *
c : Vector2F -> float32
Parameters
- a
- Type: Slash.Math.Algebra.VectorsVector2F
First point of the line. - b
- Type: Slash.Math.Algebra.VectorsVector2F
Second point of the line. - c
- Type: Slash.Math.Algebra.VectorsVector2F
Point to check against the line.
Return Value
Type:
Single Positive number if point is left, negative if point is right, and 0 if points are collinear.
See Also