0.1.0 • Published 2 years ago
@zardoy/geometry-demo v0.1.0
Geometry Library Demo
Simple geometry library for 2D context. Every figure has its own coordinates.
The package is available as ESM module (bundle is required) on npm.
Usage
pnpm i @zardoy/geometry-demo
import { Rectangular } from '@zardoy/geometry-demo'
const rect = new Rectangular({ x: 5, y: 5, width: 50, height: 50 })
const rect2 = rect.clone()
rect.x++
rect2.x // 5