Skip to content

Unify linear interpolation traits #19848

Open
@Architector4

Description

@Architector4

In Bevy, there are two traits with methods for linear interpolation:

The former has an interpolate method, and the latter has interpolate_stable method, with the same signature. They also have different requirements (former wants Reflect and also fn blend implementation, latter needs it to be stable interpolation).

It might be a good idea to have a single general "interpolatable" trait, either unifying all of these properties into one, or as a supertrait of both.

(I apologize for using the non-fancy blank issue template; none of the others felt like they fit, since this isn't really a feature request nor a bug with Bevy)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AnimationMake things move and change over timeA-MathFundamental domain-agnostic mathematical operationsC-Code-QualityA section of code that is hard to understand or change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions