npm.io
1.0.9 • Published 7 years ago

the-2d

Licence
MIT
Version
1.0.9
Deps
0
Size
88 kB
Vulns
0
Weekly
0

the-2d

Build Status npm Version JS Standard

2D Graphic utilities

Installation

$ npm install the-2d --save

Usage

'use strict'

const { Rect } = require('the2d/structs')

async function tryExample () {
  const rect = new Rect(0, 0, 100, 200)
  console.log(rect.contains(10, 20)) // -> true
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Keywords