Library "Vector2FunctionClip" Sutherland-Hodgman polygon clipping algorithm. reference: . rosettacode.org . clip(source, reference) Perform Clip operation on a vector with another. Parameters: source : array . Source polygon to be clipped. reference : array . Reference polygon to clip source. Returns: array.