1.0.0 • Published 7 years ago

css-angles v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

This is a tiny library able to hyper-efficiently convert CSS angles to and from different units, as described here.

This library was auto-generated using QuickConvert.

Supported Units

  • deg
  • turn
  • grad
  • rad

Example

const a = new Angle()
a.deg = 180

const b = new Angle('1turn')
b.deg // 360
b.turn = 2
b.deg += 20
b.deg // 740

const c = new Angle(90, 'deg')
c.add(b)
const d = Angle.sub(c, a)

Reference

For a full reference, see the documentation of the quickconvert-project.