From 5efb8868621a30ca772269d28783489598ec707f Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:47:19 -0500 Subject: [PATCH] chore(math): document how to create a cubic curve --- crates/bevy_math/src/cubic_splines.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/bevy_math/src/cubic_splines.rs b/crates/bevy_math/src/cubic_splines.rs index b2edff78f581c..249bd517c1568 100644 --- a/crates/bevy_math/src/cubic_splines.rs +++ b/crates/bevy_math/src/cubic_splines.rs @@ -431,6 +431,9 @@ impl CubicSegment { } /// 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 { segments: Vec>,