 | Vector2IArea 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 int Area(
Vector2I a,
Vector2I b,
Vector2I c
)
Public Shared Function Area (
a As Vector2I,
b As Vector2I,
c As Vector2I
) As Integer
public:
static int Area(
Vector2I a,
Vector2I b,
Vector2I c
)
static member Area :
a : Vector2I *
b : Vector2I *
c : Vector2I -> int
Parameters
- a
- Type: Slash.Math.Algebra.VectorsVector2I
First point of the line. - b
- Type: Slash.Math.Algebra.VectorsVector2I
Second point of the line. - c
- Type: Slash.Math.Algebra.VectorsVector2I
Point to check against the line.
Return Value
Type:
Int32 Positive number if point is left, negative if point is right, and 0 if points are collinear.
See Also