Search code examples
javascriptcoordinate-systems

Is there a coordinate algebra library for Javascript?


I am trying to do things like:

  1. Given two line segments, find if they intersect.
  2. Find the area of an arbitrary Polygon

For everything I have a point in rectangular co-ordinate system.


Solution

  • for finding the area: http://alienryderflex.com/polygon_area/

    intersection of two lines: possible duplicate