Skip to content

Commit

Permalink
chore(math): document how to create a cubic curve
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed Jan 13, 2024
1 parent 5deac2f commit 5efb886
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bevy_math/src/cubic_splines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@ impl CubicSegment<Vec2> {
}

/// A collection of [`CubicSegment`]s chained into a curve.
///
/// Use any struct that implements the [`CubicGenerator`] trait to create a new curve, such as
/// [`CubicBezier`].
#[derive(Clone, Debug, PartialEq)]
pub struct CubicCurve<P: Point> {
segments: Vec<CubicSegment<P>>,
Expand Down

0 comments on commit 5efb886

Please sign in to comment.