Skip to content
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

atan2 in @GlobalScope, i think it would be clearest to include the range of the function #10708

Open
BenBlueeeee opened this issue Feb 22, 2025 · 0 comments
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository discussion enhancement

Comments

@BenBlueeeee
Copy link

Your Godot version:
4.3

Issue description:
Although atan2 commonly has a range between -pi and pi, I think it would still be best to explicitly include this information on the docs page. For example, in trig classes, you learn that tan(x) either has a range from 0 to 2pi or -pi to pi, and so if you start doing gamedev and use the atan2 function, you might expect one or the other of these to be stated somewhere. Of course atan2 is a different function, which almost always has a range of between -pi and pi, but I think for beginnners it could help, and its only like 1 extra line in the docs.

URL to the documentation page (if already existing):
https://docs.godotengine.org/en/stable/classes/[email protected]#class-globalscope-method-atan2

@AThousandShips AThousandShips added enhancement discussion area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository labels Feb 22, 2025
@fire fire changed the title for atan2 in @GlobalScope, i think it would be clearest to include the range of the function atan2 in @GlobalScope, i think it would be clearest to include the range of the function Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository discussion enhancement
Projects
None yet
Development

No branches or pull requests

2 participants