Click or drag to resize

MathUtilsIsCollinear Method

Determines if three vertices are collinear (ie. on a straight line)

Namespace:  Internal.tainicom.Aether.Physics2D.Common
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static bool IsCollinear(
	ref Vector2 a,
	ref Vector2 b,
	ref Vector2 c,
	float tolerance = 0f
)

Parameters

a
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
First vertex
b
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
Second vertex
c
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
Third vertex
tolerance (Optional)
Type: SystemSingle
The tolerance

Return Value

Type: Boolean
See Also