JSPM

@thi.ng/geom-clip-poly

2.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 245
  • Score
    100M100P100Q108637F
  • License Apache-2.0

2D convex polygon clipping (Sutherland-Hodgeman)

Package Exports

  • @thi.ng/geom-clip-poly

Readme

geom-clip-poly

npm version npm downloads Twitter Follow

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

About

2D convex polygon clipping (Sutherland-Hodgeman). This is a support package for @thi.ng/geom.

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

This package has been extracted from the former (now obsolete) @thi.ng/geom-clip package.

Status

STABLE - used in production

Search or submit any issues for this package

Installation

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

ES module import:

<script type="module" src="https://cdn.skypack.dev/@thi.ng/geom-clip-poly"></script>

Skypack documentation

For Node.js REPL:

# with flag only for < v16
node --experimental-repl-await

> const geomClipPoly = await import("@thi.ng/geom-clip-poly");

Package sizes (gzipped, pre-treeshake): ESM: 347 bytes

Dependencies

API

Generated API docs

TODO

Authors

Karsten Schmidt

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
}

License

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