kld-contours
A collection of classes to represent and manipulate various vector shapes
Installation
npm install kld-contours
Importing
The following sections indicate how you can import the code for use in various environments.
Node
;
ESM in Modern Browsers
;
Older Browsers
Bundlers
;
API
BoundingBox2D
- overlaps
- isEmpty
- toString
Circle2D
- getBoundingBox
CubicBezier2D
- getPointAtParameter
- splitAtParameter
- getBernsteinPolynomials
- getArcLengthPolynomial
- getParameterFromArcLength
- getBoundingBox
- getAlignedBoundingBox
- getAlignedBezier
- toPolygon2D
- toString
Ellipse2D
- getBoundingBox
Line2D
- getBoundingBox
- toPolygon2D
Polygon2D
- getBoundingBox
- toPolygon2D
QuadraticBezier2D
- getPointAtParameter
- splitAtParameter
- getBernsteinPolynomials
- getArcLengthPolynomial
- getParameterFromArcLength
- getBoundingBox
- getAlignedBoundingBox
- getAlignedBezier
- toPolygon2D
- toString
Rectangle2D
- getBoundingBox
- toPolygon2D