/comp-geo

2D Computational Geometry for Javascript

Primary LanguageJavaScriptMIT LicenseMIT

This module is part of and developed for Citybound. At some point in the future it might become generally useful!

comp-geo

experimental

2D Computational Geometry for Javascript

Uses primitives with a configurable thickness for giving reasonable results even for inaccurate inputs.

Primitives

  • Line, Ray, LineSegment
  • Circle, Curve

Shapes

  • Path (LineSegments + Curves)
  • Shape
  • Stroke

Shape Operations

  • Clipping/Boolean Operations
  • Offsetting/Straight Skeleton