Fix example for clamped_sample change.
This commit is contained in:
parent
55e792a98b
commit
2b5aac42dd
@ -6,6 +6,6 @@ fn main() {
|
|||||||
let keys = vec![Key::new(0., 0., Interpolation::default()), Key::new(5., 1., Interpolation::default())];
|
let keys = vec![Key::new(0., 0., Interpolation::default()), Key::new(5., 1., Interpolation::default())];
|
||||||
let spline = Spline::from_vec(keys);
|
let spline = Spline::from_vec(keys);
|
||||||
|
|
||||||
println!("value at 0: {}", spline.clamped_sample(0.));
|
println!("value at 0: {:?}", spline.clamped_sample(0.));
|
||||||
println!("value at 3: {}", spline.clamped_sample(3.));
|
println!("value at 3: {:?}", spline.clamped_sample(3.));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user