py_eddy_tracker.poly.is_left

py_eddy_tracker.poly.is_left(x_line_0: float, y_line_0: float, x_line_1: float, y_line_1: float, x_test: float, y_test: float) bool[source]

Test if point is left of an infinit line.

http://geomalgorithms.com/a03-_inclusion.html See: Algorithm 1 “Area of Triangles and Polygons”

Parameters:
Returns:

> 0 for P2 left of the line through P0 and P1 = 0 for P2 on the line < 0 for P2 right of the line

Return type:

bool