@kubric/geometry
TypeScript icon, indicating that this package has built-in type declarations

1.4.5 • Public • Published

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.

Package Sidebar

Install

npm i @kubric/geometry

Weekly Downloads

2

Version

1.4.5

License

MIT

Unpacked Size

809 kB

Total Files

5

Last publish

Collaborators

  • kubedev