Skip to content

Fix CircOut easing to match C implementation#533

Merged
gen2brain merged 1 commit intogen2brain:masterfrom
TyGrze:fix-circout-easing
Jan 10, 2026
Merged

Fix CircOut easing to match C implementation#533
gen2brain merged 1 commit intogen2brain:masterfrom
TyGrze:fix-circout-easing

Conversation

@TyGrze
Copy link
Contributor

@TyGrze TyGrze commented Jan 9, 2026

The previous implementation incorrectly calculated (t/d-1)*t instead of squaring (t/d-1).
This fix properly implements the circular easing formula to match the C version:
https://github.com/raysan5/raylib/blob/master/examples/shapes/reasings.h#L116

The previous implementation incorrectly calculated (t/d-1)*t instead of
squaring (t/d-1). This fix properly implements the circular easing formula
to match the C version: c * sqrt(1 - (t/d - 1)²) + b
@TyGrze TyGrze changed the title fix CircOut easing to match C implementation Fix CircOut easing to match C implementation Jan 9, 2026
@TyGrze TyGrze force-pushed the fix-circout-easing branch from 2424e04 to 3f3ccdc Compare January 9, 2026 12:32
@gen2brain gen2brain merged commit 229d80d into gen2brain:master Jan 10, 2026
20 checks passed
@gen2brain
Copy link
Owner

Merged, thanks.

@TyGrze TyGrze deleted the fix-circout-easing branch February 1, 2026 02:38
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