From 15b165893c718a5606622b05b36f8041a429e30c Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Mon, 21 Feb 2022 21:19:30 +0100 Subject: Use WReal instead of SimdRealField everywhere --- src/dynamics/solver/delta_vel.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/dynamics/solver/delta_vel.rs') diff --git a/src/dynamics/solver/delta_vel.rs b/src/dynamics/solver/delta_vel.rs index 73f3c91..cfdb791 100644 --- a/src/dynamics/solver/delta_vel.rs +++ b/src/dynamics/solver/delta_vel.rs @@ -1,6 +1,6 @@ use crate::math::{AngVector, Vector, SPATIAL_DIM}; -use na::{DVectorSlice, DVectorSliceMut}; -use na::{Scalar, SimdRealField}; +use crate::utils::WReal; +use na::{DVectorSlice, DVectorSliceMut, Scalar}; use std::ops::{AddAssign, Sub}; #[derive(Copy, Clone, Debug, Default)] @@ -29,7 +29,7 @@ impl DeltaVel { } } -impl DeltaVel { +impl DeltaVel { pub fn zero() -> Self { Self { linear: na::zero(), @@ -38,14 +38,14 @@ impl DeltaVel { } } -impl AddAssign for DeltaVel { +impl AddAssign for DeltaVel { fn add_assign(&mut self, rhs: Self) { self.linear += rhs.linear; self.angular += rhs.angular; } } -impl Sub for DeltaVel { +impl Sub for DeltaVel { type Output = Self; fn sub(self, rhs: Self) -> Self { -- cgit