bevy/examples/animation
jnhyatt 087a345579
Rename Bezier to CubicBezier for clarity (#9554)
# Objective

A Bezier curve is a curve defined by two or more control points. In the
simplest form, it's just a line. The (arguably) most common type of
Bezier curve is a cubic Bezier, defined by four control points. These
are often used in animation, etc. Bevy has a Bezier curve struct called
`Bezier`. However, this is technically a misnomer as it only represents
cubic Bezier curves.

## Solution

This PR changes the struct name to `CubicBezier` to more accurately
reflect the struct's usage. Since it's exposed in Bevy's prelude, it can
potentially collide with other `Bezier` implementations. While that
might instead be an argument for removing it from the prelude, there's
also something to be said for adding a more general `Bezier` into Bevy,
in which case we'd likely want to use the name `Bezier`. As a final
motivator, not only is the struct located in `cubic_spines.rs`, there
are also several other spline-related structs which follow the
`CubicXxx` naming convention where applicable. For example,
`CubicSegment` represents a cubic Bezier curve (with coefficients
pre-baked).

---

## Migration Guide

- Change all `Bezier` references to `CubicBezier`
2023-08-28 17:37:42 +00:00
..
animated_fox.rs API updates to the AnimationPlayer (#9002) 2023-08-28 16:43:04 +00:00
animated_transform.rs Fixed several missing links in docs. (#8117) 2023-04-23 17:28:36 +00:00
cubic_curve.rs Rename Bezier to CubicBezier for clarity (#9554) 2023-08-28 17:37:42 +00:00
custom_skinned_mesh.rs
gltf_skinned_mesh.rs
morph_targets.rs Fix CI for Rust 1.72 (#9562) 2023-08-25 12:34:24 +00:00