resqpy.olio.vector_utilities.in_triangle

resqpy.olio.vector_utilities.in_triangle(a, b, c, d)[source]

Returns True if point d lies wholly within the triangle pf ccw points a, b, c, projected onto xy plane.

Note

a, b & c must be sorted into anti-clockwise order before calling this function