point_in_convex_polygon module

Helper module to determine if a point lies within a polygon

Script is based on Ref1 and Ref2.

class point_in_convex_polygon.Point(s1, s2)

Bases: object

Point class to define a point

point_in_convex_polygon.is_within_polygon(polygon, point)

Determine if a point lies within the polygon

Parameters
polygon: list of points

polygon definition using a set of points

point: class:’Point’

a single point

Returns
True/False: Bool

Depending on if point lies within polygon