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

SquareFloat type #15

Open
Bartanakin opened this issue Oct 31, 2024 · 0 comments
Open

SquareFloat type #15

Bartanakin opened this issue Oct 31, 2024 · 0 comments
Labels
Medium Scale of knowledge of the project requirement Tedious Scale of workload requirement

Comments

@Bartanakin
Copy link
Owner

With usage of concepts, operator overloading and casts write type that represents squared distance. It will be useful when comparing distances without use of square root calculation in order to prevent unnecessary bugs.

Best if the type is a template that can be applied to any numeric type.

Replace the return type in Barta::Vector2f::norm and other functions accordingly.

@Bartanakin Bartanakin added Medium Scale of knowledge of the project requirement Tedious Scale of workload requirement labels Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Scale of knowledge of the project requirement Tedious Scale of workload requirement
Projects
None yet
Development

No branches or pull requests

1 participant