css-angles
v1.0.0
Published
A representation and unit conversion tool for CSS angles
Downloads
4
Maintainers
Readme
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.