A collection of classes to represent and manipulate various vector shapes
npm install kld-contours
The following sections indicate how you can import the code for use in various environments.
import {CubicBezier2D, QuadraticBezier2D, Rectangle2D} = require("kld-contours");
import {CubicBezier2D, QuadraticBezier2D, Rectangle2D} from './node_modules/kld-contours/dist/index-esm.js';
<script src="./node_modules/kld-contours/dist/index-umd.js"></script>
<script>
var CubicBezier2D = KldContours.CubicBezier2D;
var QuadraticBezier2D = KldContours.QuadraticBezier2D;
var Rectangle2D = KldContours.Rectangle2D;
</script>
import {CubicBezier2D, QuadraticBezier2D, Rectangle2D} from "kld-contours";
- overlaps
- isEmpty
- toString
- getBoundingBox
- getPointAtParameter
- splitAtParameter
- getBernsteinPolynomials
- getArcLengthPolynomial
- getParameterFromArcLength
- getBoundingBox
- getAlignedBoundingBox
- getAlignedBezier
- toPolygon2D
- toString
- getBoundingBox
- getBoundingBox
- toPolygon2D
- getBoundingBox
- toPolygon2D
- getPointAtParameter
- splitAtParameter
- getBernsteinPolynomials
- getArcLengthPolynomial
- getParameterFromArcLength
- getBoundingBox
- getAlignedBoundingBox
- getAlignedBezier
- toPolygon2D
- toString
- getBoundingBox
- toPolygon2D