Options
All
  • Public
  • Public/Protected
  • All
Menu

@thi.ng/geom-poly-utils

@thi.ng/geom-poly-utils

npm (scoped) npm downloads Twitter Follow

This project is part of the @thi.ng/umbrella monorepo.

About

Polygon / triangle analysis & processing utilities:

  • signed 2D polygon & triangle area
  • triangle barycentric coord conversion
  • nD point cloud bounding box
  • 2D poly center of weight
  • nD point cloud centroid
  • 2D circumcenter
  • 2D polygon convexity classification
  • 2D equilateral triangle
  • polygon / polyline perimeter

Installation

yarn add @thi.ng/geom-poly-utils

Dependencies

Usage examples

import * as gpu from "@thi.ng/geom-poly-utils";

Authors

  • Karsten Schmidt

License

© 2018 Karsten Schmidt // Apache Software License 2.0

Generated using TypeDoc