-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[rshapes] More spline functions #4810
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
base: master
Are you sure you want to change the base?
Conversation
@AmityWilder I'm afraid this PR has become too big with too many additions, increasing complexity. Despite useful, probably many of those spline-specific functions are not required for most raylib users and they increase API complexity and maintenance cost... I can add the 2 new draw functions but all the What do you think? Please, let me know to move this PR forward... EDIT: An ideal option would be to have a separate single-file header-only library, maybe |
That sounds alright with me, would you like me to filter this PR down to just those draw functions? |
How does something like this look? (based a good chunk of it off of raygui and copied over the already-implemented functions from the PR with the addition of optional 1D and 3D variations of them—I'm not opposed to changing the names of them before release) |
@AmityWilder Thanks! It looks great! Let me see how it can be integrated into |
Relating to #4809
Added math functions
GetSplineVelocityLinear
GetSplineVelocityBezierQuad
GetSplineVelocityBezierCubic
GetSplineAccelerationBezierQuad
GetSplineAccelerationBezierCubic
GetSplineJoltBezierCubic
GetSplineBoundsBezierLinear
GetSplineBoundsBezierQuad
GetSplineBoundsBezierCubic
GetSplineCurvatureBezierCubic
GetSplineNearestTLinear
Added draw function
DrawSplineSegmentBezierCubicVar