Contents:
available
libpysal.cg.
is_collinear
Returns whether a triplet of points is collinear.
is_collinear(Point, Point, Point) -> bool
a
point
Point
another
yet
Examples
>>> is_collinear(Point((0, 0)), Point((1, 1)), Point((5, 5))) True >>> is_collinear(Point((0, 0)), Point((1, 1)), Point((5, 0))) False