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

raylib.Vector2DistanceSqrt has a misleading name #4784

Open
memmaker opened this issue Feb 2, 2025 · 1 comment
Open

raylib.Vector2DistanceSqrt has a misleading name #4784

memmaker opened this issue Feb 2, 2025 · 1 comment

Comments

@memmaker
Copy link

memmaker commented Feb 2, 2025

This function does in fact calculate the squared distance, the original raylib function is called "Vector2DistanceSqr".
So the whole idea of this function is to not calculate the square root. However, the new name uses the common abbreviation for this: "sqrt".

@Kelimion
Copy link
Member

Kelimion commented Feb 2, 2025

Probably a typo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants