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

[write-fonts] iup: fixup vector distance calculation #631

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Sep 26, 2023

We were checking the axes independently, instead of checking the overall length of the vector.

@behdad
Copy link
Contributor

behdad commented Sep 26, 2023

Nit: If you use hypot2 or equivalent you can save a sqrt. LGTM otherwise.

@behdad
Copy link
Contributor

behdad commented Sep 27, 2023

Nit: If you use hypot2 or equivalent you can save a sqrt. LGTM otherwise.

Should it also do the powi(2) once outside the loop?

We were checking the axes independently, instead of checking the overall
length of the vector.
@cmyr cmyr merged commit c4679e5 into main Sep 27, 2023
@cmyr cmyr deleted the iup-vector-dist branch September 27, 2023 15:15
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

Successfully merging this pull request may close these issues.

3 participants