How to determine if a polygon is inside a given polygon?
Polygon is represented as list of points(x,y).

Also how to determine if a point in a polygon is on the border of a polygon?