Click or drag to resize
Accord.NET (logo)

Point3Collinear Method

Gets whether three points lie on the same line.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static bool Collinear(
	Point3 p1,
	Point3 p2,
	Point3 p3
)
Request Example View Source

Parameters

p1
Type: Accord.MathPoint3
The first point.
p2
Type: Accord.MathPoint3
The second point.
p3
Type: Accord.MathPoint3
The third point.

Return Value

Type: Boolean
True if there is a line passing through all three points; false otherwise.
See Also