MathUtilsIsCollinear Method |
Determines if three vertices are collinear (ie. on a straight line)
Namespace: Internal.tainicom.Aether.Physics2D.CommonAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static bool IsCollinear(
ref Vector2 a,
ref Vector2 b,
ref Vector2 c,
float tolerance = 0f
)
Parameters
- a Vector2
- First vertex
- b Vector2
- Second vertex
- c Vector2
- Third vertex
- tolerance Single (Optional)
- The tolerance
Return Value
Boolean
See Also