pixel
pixel copied to clipboard
Curves
This commit adds beizer curves to geometry and also adds one method for vector Angle to. Its all documentated. Curve should be used by a particle system i am planing to pull request.
Why no tests?
Not sure why you're returning a pointer for B
, Linear
or Constant
and why you have a pointer receiver for Point
, the rest of the file is entirely functional with no pointer returns or receivers
Ok i ll make some test just for sake of it. Lets remove these pointers then.
The Bezier functions/structures look good, was there a reason why you needed to change the pixelgl.Window structure to directly embed the glfh.Window structure?
@jakubDoka
@dusk125
I assume this PR is not relevant anymore.
@duysqubix could still be useful, I would suggest we revert the window.go changes. But other than those, lgtm
@dusk125
I am going to recreate this PR in pixel2 to track and modify changes there.
Update: PR merged with Pixel2