I just upgraded to 0.22 and am getting various compiler errors for unsatisfied traits.
Am I missing something overall that I’m supposed to do in the new version?
Some examples:
Matrix4::new_orthographic
error[E0277]: the trait bound `{float}: nalgebra::RealField` is not satisfied
--> src\renderer.rs:85:26
|
85 | let camera_mat = Matrix4::new_orthographic( 0.0, stage_area.width as f32, 0.0, stage_area.height as f32, -100.0, 100.0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `nalgebra::RealField` is not implemented for `{float}`
|
= note: required by `nalgebra::base::cg::<impl nalgebra::Matrix<N, nalgebra::U4, nalgebra::U4, <nalgebra::DefaultAllocator as nalgebra::allocator::Allocator<N, nalgebra::U4, nalgebra::U4>>::Buffer>>::new_orthographic`
Unit::new_normalize
error[E0277]: the trait bound `{float}: nalgebra::ComplexField` is not satisfied
--> src\systems.rs:45:44
|
45 | let axis = Unit::new_normalize(Vector3::new(0.0, 0.0, 1.0));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `nalgebra::ComplexField` is not implemented for `{float}`
|
= help: the following implementations were found:
<nalgebra::Complex<N> as nalgebra::ComplexField>
= note: required because of the requirements on the impl of `nalgebra::SimdComplexField` for `{float}`
= note: required because of the requirements on the impl of `nalgebra::Normed` for `nalgebra::Matrix<{float}, nalgebra::U3, nalgebra::U1, nalgebra::ArrayStorage<{float}, nalgebra::U3, nalgebra::U1>>`
= note: required by `nalgebra::Unit::<T>::new_normalize`
UnitQuaternion::from_axis_angle
error[E0277]: the trait bound `{float}: nalgebra::RealField` is not satisfied
--> src\systems.rs:46:26
|
46 | let coords = UnitQuaternion::from_axis_angle(&axis, value.to_radians()).coords;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `nalgebra::RealField` is not implemented for `{float}`
|
::: C:\Users\david\.cargo\registry\src\github.com-1ecc6299db9ec823\nalgebra-0.22.0\src\geometry\quaternion_construction.rs:223:13
|
223 | SB: Storage<N, U3>,
| -------------- required by this bound in `nalgebra::geometry::quaternion_construction::<impl nalgebra::Unit<nalgebra::Quaternion<N>>>::from_axis_angle`
|
= note: required because of the requirements on the impl of `nalgebra::SimdRealField` for `{float}`