I am trying to do things like:
For everything I have a point in rectangular co-ordinate system.
for finding the area: http://alienryderflex.com/polygon_area/
intersection of two lines: possible duplicate