-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add math.atan2
#819
Add math.atan2
#819
Conversation
stdlib/math.pkl
Outdated
/// Returns the [4-quadrant inverse tangent][1] of [x] and [y]. | ||
/// | ||
/// [1]: https://en.wikipedia.org/wiki/Atan2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're linking to Wikipedia, let's use verbiage that aligns with it.
Also, need a @Since
annotation.
/// Returns the [4-quadrant inverse tangent][1] of [x] and [y]. | |
/// | |
/// [1]: https://en.wikipedia.org/wiki/Atan2 | |
/// Returns the [2-argument arctangent][1] of [x] and [y]. | |
/// | |
/// [1]: https://en.wikipedia.org/wiki/Atan2 | |
@Since { version = "0.28.0" } |
It might also be helpful to have one more paragraph to describe this function's purpose. Maybe something like: "The result is 𝜃 (theta) when converting cartesian coordinates 𝑥 and 𝑦 to polar coordinates 𝑟 and 𝜃."
Needs a confirmation approval from @bioball (having requested changes); they look addressed to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.