add function (V2 to its angle(inverse of `angle`))
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start in Linear.V2 near the existing angle function and compare the proposed unAngle implementation with the module's conventions. Confirm the intended inverse-angle behavior and add the exported function so the requested V2 operation is available.
Written by the indexing model from the issue text.
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?
- Dominant language
- Haskell
- Stars
- 220
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ekmett/linear
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
bikeshedding feature request
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
brick-3.0Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
commercialhaskell/stackage#8129 · 2 comments ·
-
Add DataHaskell ?Open
Difficulty 1/5 Under an hour Newbie friendliness 76/100
severo/awesome-parquet#50 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/phino#1444 ·
Maintainers usually reply within 1 day
-
enhancement triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
simplex-chat/simplex-chat#7585 ·
Maintainers usually reply within 1 day