Skip to content

Commit 418419d

Browse files
CubicSegment::iter_uniformly should be public (#20417)
# Objective `CubicSegment::iter_uniformly` should be public, as there is no harm to it being public ## Solution made `CubicSegment::iter_uniformly` public ## Testing
1 parent 8a51d39 commit 418419d

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_math/src/cubic_splines

1 file changed

+1
-1
lines changed

crates/bevy_math/src/cubic_splines/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ impl<P: VectorSpace<Scalar = f32>> CubicSegment<P> {
10361036

10371037
/// An iterator that returns values of `t` uniformly spaced over `0..=subdivisions`.
10381038
#[inline]
1039-
fn iter_uniformly(&self, subdivisions: usize) -> impl Iterator<Item = f32> {
1039+
pub fn iter_uniformly(&self, subdivisions: usize) -> impl Iterator<Item = f32> {
10401040
let step = 1.0 / subdivisions as f32;
10411041
(0..=subdivisions).map(move |i| i as f32 * step)
10421042
}

0 commit comments

Comments
 (0)