brep-io-2d-solver
v1.0.0
Published
A 2D geometric constraints solver for the web.
Readme
brep-io-2d-solver
A 2D geometric constraints solver for the web.
Install
npm add brep-io-2d-solverQuick Start
import { Solver } from "brep-io-2d-solver";
const solver = new Solver();
const a = solver.addPoint(0, 0, { fixed: true });
const b = solver.addPoint(120, 30);
const c = solver.addPoint(120, 90);
solver.addHorizontal(a, b).addVertical(b, c).addDistance(a, c, 150);
const result = solver.solve();
console.log(result.converged);
console.log(solver.getPoints());Third-Party License Notice
- Eigen is licensed under the Mozilla Public License 2.0 (MPL-2.0).
- Eigen source: https://gitlab.com/libeigen/eigen
- A copy of the Eigen/MPL license text is included in this package as
EIGEN.COPYING.MPL2.
