 | Vector2ICollinear Method (Vector2I, Vector2I, Vector2I, Single) |
Determines if three vectors are collinear (ie. on a straight line).
Namespace: Slash.Math.Algebra.VectorsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static bool Collinear(
ref Vector2I a,
ref Vector2I b,
ref Vector2I c,
float tolerance
)
Public Shared Function Collinear (
ByRef a As Vector2I,
ByRef b As Vector2I,
ByRef c As Vector2I,
tolerance As Single
) As Boolean
public:
static bool Collinear(
Vector2I% a,
Vector2I% b,
Vector2I% c,
float tolerance
)
static member Collinear :
a : Vector2I byref *
b : Vector2I byref *
c : Vector2I byref *
tolerance : float32 -> bool
Parameters
- a
- Type: Slash.Math.Algebra.VectorsVector2I
First vector. - b
- Type: Slash.Math.Algebra.VectorsVector2I
Second vector. - c
- Type: Slash.Math.Algebra.VectorsVector2I
Third vector. - tolerance
- Type: SystemSingle
Tolerance to allow.
Return Value
Type:
Boolean True if the three vectors are collinear; otherwise, false.
See Also