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

Minor fix in DrawLineBezier* #3006

Merged
merged 1 commit into from
Apr 9, 2023
Merged

Conversation

eternalStudent
Copy link
Contributor

When i starts with 0, t is also 0, which results in previous == startPos == current, this segment is not only redundant, but it also causes division-by-zero since sqrtf(dx*dx + dy*dy) is zero.

When `i` starts with `0`, `t` is also `0`, which results in `previous == startPos == current`, this segment is not only redundant, but it also causes division-by-zero since `sqrtf(dx*dx + dy*dy)` is zero.
@raysan5 raysan5 merged commit 8f741d8 into raysan5:master Apr 9, 2023
@raysan5
Copy link
Owner

raysan5 commented Apr 9, 2023

@eternalStudent thanks for the review! :)

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