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

Reorder cubic bezier curve calculations #91

Merged
merged 1 commit into from
Sep 24, 2023
Merged

Reorder cubic bezier curve calculations #91

merged 1 commit into from
Sep 24, 2023

Conversation

myaaaaaaaaa
Copy link
Contributor

Change ((p1+p2)+p3)+p4 to (p1+p4)+(p2+p3) so that it returns the exact same point regardless of which order the control points are given in (at least, as far as I can tell).

This makes it friendlier to map[Vec3]int, which I am insane enough to seriously attempt using.

@pwaller pwaller merged commit 88d117f into go-gl:master Sep 24, 2023
@pwaller
Copy link
Member

pwaller commented Sep 24, 2023

Seems reasonable to me, thanks.

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.

2 participants