@thi.ng/geom-clip

2D line & convex polygon clipping (Liang-Barsky / Sutherland-Hodgeman)

Usage no npm install needed!

<script type="module">
  import thiNgGeomClip from 'https://cdn.skypack.dev/@thi.ng/geom-clip';
</script>

README

@thi.ng/geom-clip

npm version npm downloads Twitter Follow

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

About

2D line & convex polygon clipping (Liang-Barsky / Sutherland-Hodgeman).

Current implementation is based on toxiclibs (Java) and Clojure version of thi.ng/geom.

Status

STABLE - used in production

Installation

yarn add @thi.ng/geom-clip

Package sizes (gzipped): ESM: 0.5KB / CJS: 0.6KB / UMD: 0.7KB

Dependencies

API

Generated API docs

TODO

Authors

Karsten Schmidt

License

© 2013 - 2020 Karsten Schmidt // Apache Software License 2.0