Important
Please participate in the survey here!
(open until end of February)
To achieve a better sample size, I'd highly appreciate if you could circulate the link to this survey in your own networks.
Note
This is one of 189 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.
🚀 Help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️
2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann). This is a support package for @thi.ng/geom.
Current implementations are based on toxiclibs (Java) and Clojure versions thi.ng/geom-clj.
STABLE - used in production
Search or submit any issues for this package
- @thi.ng/geom-clip-line - 2D line clipping (Liang-Barsky)
yarn add @thi.ng/geom-clip-poly
ES module import:
<script type="module" src="https://cdn.skypack.dev/@thi.ng/geom-clip-poly"></script>
For Node.js REPL:
const geomClipPoly = await import("@thi.ng/geom-clip-poly");
Package sizes (brotli'd, pre-treeshake): ESM: 321 bytes
TODO
If this project contributes to an academic publication, please cite it as:
@misc{thing-geom-clip-poly,
title = "@thi.ng/geom-clip-poly",
author = "Karsten Schmidt",
note = "https://thi.ng/geom-clip-poly",
year = 2013
}
© 2013 - 2024 Karsten Schmidt // Apache License 2.0