@kubric/geometry
v1.4.5
Published
Javascript library for 2d geometry. Cloned from flattenjs
Downloads
6
Maintainers
Readme
Javascript library for 2d geometry
This is a fork from @flattenjs/core with added functionality. Refer the docs of the original package. The changes and the additional features are added below
Importing
The import of the library has changed to the following
import Geometry from '@kubric/geometry'
const {Point, Vector, Circle, Line, Ray, Segment, Arc, Box, Polygon, Matrix, PlanarSet} = Geometry;
Circle
The Geometry.Circle
class also supports checking for if a polygon is
contained in a circle.