libGDX's math api is built around floating point. This can lead to Triangulation errors with co-axial points.
This library provides higher precision double math utilities, in a libGDX compatable and API friendly way. These extensions are just double versions of the existing built in float versions:
- DoubleArray (FloatArray)
- DoubleConvexHull (ConvexHull)
- DoubleDelaunayTriangulator (DalaunayTriangulator)
- DoubleGeometryUtils (GeometryUtils)
- DoublePolygon (Polygon)
- DoubleShape2D (Shape2D)
Built off: https://github.com/libgdx/libgdx
NOTE: Some of these calculations have Vector2 inputs or outputs. These values are cast to float so there may still be some precision lost without moving to a DoubleVector2 (not made yet)