Skip to content

Refactor Easing functions with internal _Raw methods - #49

Open
google-labs-jules[bot] wants to merge 1 commit into
feature/easingfrom
refactor-easing-functions-15911222361911213953
Open

Refactor Easing functions with internal _Raw methods#49
google-labs-jules[bot] wants to merge 1 commit into
feature/easingfrom
refactor-easing-functions-15911222361911213953

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

This refactor separates the core mathematical formulas of all easing functions into internal, inlined _Raw methods.

Key changes:

  1. Method Separation: Every easing function (e.g., QuadIn) now has a corresponding QuadIn_Raw internal method.
  2. Organization: Follows the strict requirement of 3 public methods (In, Out, InOut) followed by 3 internal _Raw methods per easing category.
  3. Boundary Guards:
    • Unnecessary x <= 0 ? 0 : (x >= 1 ? 1 : ...) guards were removed from the _Raw methods to use the "original formula".
    • Famous guards inherent to certain formulas (like Expo and Elastic stability at $x=0$ or $x=1$) are retained in the _Raw methods.
    • Public methods call the _Raw methods without extra guards (per verification requirements).
  4. Tooling: ExpectedValueGenerator.cs at the repository root now uses these internal _Raw methods instead of having its own duplicate implementations, ensuring it generates values based on the actual library logic.
  5. Inlining & Accessibility: All _Raw methods use [MethodImpl(MethodImplOptions.AggressiveInlining)]. AssemblyInfo.cs was updated to grant ExpectedValueGenerator access to internal members.

Note: As per explicit instructions, public methods currently lack 0-1 clamping, which is expected to cause test failures at $t=0$ and $t=1$ in the current project state for implementation verification.


PR created automatically by Jules for task 15911222361911213953 started by @sator-imaging

…methods.

- Declared internal <Method>_Raw methods with AggressiveInlining for all easing types.
- Organized methods as 3 public methods followed by 3 internal _Raw methods for each category.
- Updated public methods to call corresponding _Raw methods without 0-1 boundary guards for verification.
- Removed unnecessary guards from _Raw methods, keeping only those part of the original formula (e.g., Expo, Elastic).
- Updated ExpectedValueGenerator.cs to use _Raw methods directly.
- Added InternalsVisibleTo("ExpectedValueGenerator") in AssemblyInfo.cs.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@google-labs-jules
google-labs-jules Bot requested a review from sator-imaging as a code owner May 3, 2026 02:28
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.

0 participants