jlmakes / jlmakes/rematrix

Add unit type to rotation and skew methods

Open
#2 5 comments 0 reactions 0 assignees View on GitHub
feature request feedback needed
Dominant language
JavaScript
Stars
436
Forks
13
PR merge metrics
No merged PRs in 30d

Description

> Something that allows you to specify the unit for rotation, such as rad or turn `Rematrix.rotate(0.5, 'rad')` perhaps?
>
> — @davidkpiano

### Units

* **deg** — Degrees. There are 360 degrees in a full circle.
* **grad** — Gradians, also known as "gons" or "grades". There are 400 gradians in a full circle.
* **rad** — Radians. There are 2π radians in a full circle.
* **turn** — Turns. There is 1 turn in a full circle.

Source: https://drafts.csswg.org/css-values-3/#angles

Re: #1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.