Remove nalgebra point interpolation.

This commit is contained in:
Dimitri Sabadie 2019-04-21 17:55:57 +02:00
parent 65a713c51b
commit 9d5971a5f7

View File

@ -145,20 +145,6 @@ fn several_interpolations_several_keys() {
assert_eq!(spline.clamped_sample(11.), Some(4.)); assert_eq!(spline.clamped_sample(11.), Some(4.));
} }
#[cfg(feature = "impl-nalgebra")]
#[test]
fn nalgebra_point_interpolation() {
use splines::Interpolate;
let start = na::Point2::new(0.0, 0.0);
let mid = na::Point2::new(0.5, 0.5);
let end = na::Point2::new(1.0, 1.0);
assert_eq!(Interpolate::lerp(start, end, 0.0), start);
assert_eq!(Interpolate::lerp(start, end, 1.0), end);
assert_eq!(Interpolate::lerp(start, end, 0.5), mid);
}
#[cfg(feature = "impl-nalgebra")] #[cfg(feature = "impl-nalgebra")]
#[test] #[test]
fn nalgebra_vector_interpolation() { fn nalgebra_vector_interpolation() {