From 7ec5d00c3db7851d9c6893eb012a29b3563bd4d8 Mon Sep 17 00:00:00 2001 From: Chinedu Francis Nwafili Date: Fri, 18 Dec 2020 10:38:19 -0500 Subject: [PATCH] Clean up DualQuat bounds --- src/geometry/dual_quaternion_construction.rs | 3 --- src/geometry/dual_quaternion_ops.rs | 10 ++-------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/geometry/dual_quaternion_construction.rs b/src/geometry/dual_quaternion_construction.rs index aece0a87..25a979f7 100644 --- a/src/geometry/dual_quaternion_construction.rs +++ b/src/geometry/dual_quaternion_construction.rs @@ -16,9 +16,6 @@ impl DualQuaternion { pub fn from_real_and_dual(real: Quaternion, dual: Quaternion) -> Self { Self { real, dual } } -} - -impl DualQuaternion { /// The dual quaternion multiplicative identity /// /// # Example diff --git a/src/geometry/dual_quaternion_ops.rs b/src/geometry/dual_quaternion_ops.rs index 869ee7bf..0c9f78f4 100644 --- a/src/geometry/dual_quaternion_ops.rs +++ b/src/geometry/dual_quaternion_ops.rs @@ -22,9 +22,7 @@ * - https://cs.gmu.edu/~jmlien/teaching/cs451/uploads/Main/dual-quaternion.pdf */ -use crate::base::allocator::Allocator; -use crate::{DefaultAllocator, DualQuaternion, SimdRealField, U1, U4}; -use simba::simd::SimdValue; +use crate::{DualQuaternion, SimdRealField}; use std::mem; use std::ops::{Add, Index, IndexMut, Mul, Sub}; @@ -61,7 +59,6 @@ impl IndexMut for DualQuaternion { impl Mul> for DualQuaternion where N::Element: SimdRealField, - DefaultAllocator: Allocator + Allocator, { type Output = DualQuaternion; @@ -75,8 +72,7 @@ where impl Mul for DualQuaternion where - N::Element: SimdRealField + SimdValue, - DefaultAllocator: Allocator + Allocator, + N::Element: SimdRealField, { type Output = DualQuaternion; @@ -88,7 +84,6 @@ where impl Add> for DualQuaternion where N::Element: SimdRealField, - DefaultAllocator: Allocator + Allocator, { type Output = DualQuaternion; @@ -100,7 +95,6 @@ where impl Sub> for DualQuaternion where N::Element: SimdRealField, - DefaultAllocator: Allocator + Allocator, { type Output = DualQuaternion;