1.4.5 • Published 7 months ago

@kubric/geometry v1.4.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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.