Skip to content

Reorder cubic bezier curve calculations#91

Merged
pwaller merged 1 commit intogo-gl:masterfrom
myaaaaaaaaa:bezier-order
Sep 24, 2023
Merged

Reorder cubic bezier curve calculations#91
pwaller merged 1 commit intogo-gl:masterfrom
myaaaaaaaaa:bezier-order

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