bevy/crates/bevy_gizmos/src
Carter Anderson 7477928f13
Use normal constructors for EasingCurve, FunctionCurve, ConstantCurve (#16367)
# 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.
2024-11-13 15:30:05 +00:00
..
primitives Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00
aabb.rs Reflect derived traits on all components and resources: bevy_gizmos (#15217) 2024-09-15 14:41:49 +00:00
arcs.rs Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00
arrows.rs Fix Gizmos warnings and doc errors when a subset of features are selected (#14887) 2024-08-23 16:19:06 +00:00
circles.rs Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00
config.rs Stop using Handle<T> as a component in bevy_gizmos (#15713) 2024-10-07 22:57:26 +00:00
cross.rs Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00
curves.rs Use normal constructors for EasingCurve, FunctionCurve, ConstantCurve (#16367) 2024-11-13 15:30:05 +00:00
gizmos.rs Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00
grid.rs Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00
lib.rs Fix gizmos (#15836) 2024-10-10 22:04:04 +00:00
light.rs Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00
line_joints.wgsl Normalise matrix naming (#13489) 2024-06-03 16:56:53 +00:00
lines.wgsl view.inverse_clip_from_world should be world_from_clip (#13756) 2024-06-09 14:40:14 +00:00
pipeline_2d.rs Don't reëxport bevy_image from bevy_render (#16163) 2024-11-10 06:54:38 +00:00
pipeline_3d.rs Don't reëxport bevy_image from bevy_render (#16163) 2024-11-10 06:54:38 +00:00
rounded_box.rs Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00