diff --git a/crates/bevy_math/src/cubic_splines.rs b/crates/bevy_math/src/cubic_splines.rs index bda82b5c7b3d4..8deaa4e677b7a 100644 --- a/crates/bevy_math/src/cubic_splines.rs +++ b/crates/bevy_math/src/cubic_splines.rs @@ -26,10 +26,20 @@ pub trait Point: { } -impl Point for Vec3 {} -impl Point for Vec3A {} -impl Point for Vec2 {} -impl Point for f32 {} +impl Point for T where + T: Mul + + Div + + Add + + Sub + + Add + + Sum + + Default + + Debug + + Clone + + PartialEq + + Copy +{ +} /// A spline composed of a single cubic Bezier curve. ///