Fix example for clamped_sample change.

This commit is contained in:
Dimitri Sabadie 2019-04-16 17:24:08 +02:00
parent 55e792a98b
commit 2b5aac42dd

View File

@ -6,6 +6,6 @@ fn main() {
let keys = vec![Key::new(0., 0., Interpolation::default()), Key::new(5., 1., Interpolation::default())];
let spline = Spline::from_vec(keys);
println!("value at 0: {}", spline.clamped_sample(0.));
println!("value at 3: {}", spline.clamped_sample(3.));
println!("value at 0: {:?}", spline.clamped_sample(0.));
println!("value at 3: {:?}", spline.clamped_sample(3.));
}