Polygon and line clipping and offsetting library.