mirror of
https://github.com/bevyengine/bevy
synced 2025-02-17 14:38:34 +00:00
# Objective We currently use special "floating" constructors for `EasingCurve`, `FunctionCurve`, and `ConstantCurve` (ex: `easing_curve`). This erases the type being created (and in general "what is happening" structurally), for very minimal ergonomics improvements. With rare exceptions, we prefer normal `X::new()` constructors over floating `x()` constructors in Bevy. I don't think this use case merits special casing here. ## Solution Add `EasingCurve::new()`, use normal constructors everywhere, and remove the floating constructors. I think this should land in 0.15 in the interest of not breaking people later. |
||
---|---|---|
.. | ||
bounding | ||
curve | ||
primitives | ||
rects | ||
sampling | ||
affine3.rs | ||
aspect_ratio.rs | ||
common_traits.rs | ||
compass.rs | ||
cubic_splines.rs | ||
direction.rs | ||
float_ord.rs | ||
isometry.rs | ||
lib.rs | ||
ops.rs | ||
ray.rs | ||
rotation2d.rs |