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

Non-circular Spline - looks strange or I don't get it :) #61

Open
andymel123 opened this issue Apr 12, 2021 · 0 comments
Open

Non-circular Spline - looks strange or I don't get it :) #61

andymel123 opened this issue Apr 12, 2021 · 0 comments

Comments

@andymel123
Copy link

https://github.com/OneLoneCoder/videos/blob/537664947db31529d2d2236deda9105ca19c041c/OneLoneCoder_Splines1.cpp#L72
Looks like this would give me the point at index 1 when I ask for index 0 and
https://github.com/OneLoneCoder/videos/blob/537664947db31529d2d2236deda9105ca19c041c/OneLoneCoder_Splines1.cpp#L106
looks like it gives me the gradient at index 1 instead of index 0.

Some thoughts:
in GetSplinePoint one could return the first control point if t==0 but I guess there simply is no gradient at the start of the spline?!

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

No branches or pull requests

1 participant