A JavaScript framework developed for coordinate geometry calculation with vectors.
- WARNING: This library DOES NOT handle float point error. Please bare this in mind.
- when constructing new polygon, please check whether the points really form one before setting up the new object.
- all points passed to new polygon, new line segment and new circle will be cloned, therefore de-referenced. So any changes made to the point forming the algebraic object will not affect the already created object.
https://ChloeLo27.github.io/CoordGeom.js
https://ChloeLo27.github.io/CoordGeom.js/edge
Simply include the main.js
file then you're done.
Alternatively, you may directly link to the framework through the following urls for different releases:
https://cdn.jsdelivr.net/gh/ChloeLo27/[email protected]/main.js
https://cdn.jsdelivr.net/gh/ChloeLo27/CoordGeom.js@latest/main.js