add function (V2 to its angle(inverse of `angle`))
Open
feature request
- Dominant language
- Haskell
- Stars
- 220
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
I use this function a lot.
```
unAngle :: V2 Double -> Double
unAngle (V2 ax ay) =
let alpha = asin $ ay / (ax * ax + ay * ay)
in if ax < 0
then pi - alpha
else alpha
```
Shoud we add it to Linear.V2?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.