kiwi-geometry
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

🚀 Kiwi Geometry npm version License: MIT

✨ Lightweight fast constraint solver for 2D/3D geometries powered by @lume/kiwi

📦 Installation

npm install kiwi-geometry
# or
yarn add kiwi-geometry

🚀 Quick Start

import {Solver, Plane} from 'kiwi-geometry';

const solver = new Solver();
const plane1 = new Plane(solver, {width: 100, height: 100});
const plane2 = new Plane(solver, {width: 50});

// Align right edge of plane2 to left edge of plane1
plane2.setLeftOf(plane1);

Readme

Keywords

none

Package Sidebar

Install

npm i kiwi-geometry

Weekly Downloads

14

Version

1.0.4

License

MIT

Unpacked Size

29.2 kB

Total Files

32

Last publish

Collaborators

  • daddystannis