Clean up DualQuat bounds

This commit is contained in:
Chinedu Francis Nwafili 2020-12-18 10:38:19 -05:00
parent 89134efc3b
commit 7ec5d00c3d
No known key found for this signature in database
GPG Key ID: 3C85D8F6538D8AD9
2 changed files with 2 additions and 11 deletions

View File

@ -16,9 +16,6 @@ impl<N: SimdRealField> DualQuaternion<N> {
pub fn from_real_and_dual(real: Quaternion<N>, dual: Quaternion<N>) -> Self { pub fn from_real_and_dual(real: Quaternion<N>, dual: Quaternion<N>) -> Self {
Self { real, dual } Self { real, dual }
} }
}
impl<N: SimdRealField> DualQuaternion<N> {
/// The dual quaternion multiplicative identity /// The dual quaternion multiplicative identity
/// ///
/// # Example /// # Example

View File

@ -22,9 +22,7 @@
* - https://cs.gmu.edu/~jmlien/teaching/cs451/uploads/Main/dual-quaternion.pdf * - https://cs.gmu.edu/~jmlien/teaching/cs451/uploads/Main/dual-quaternion.pdf
*/ */
use crate::base::allocator::Allocator; use crate::{DualQuaternion, SimdRealField};
use crate::{DefaultAllocator, DualQuaternion, SimdRealField, U1, U4};
use simba::simd::SimdValue;
use std::mem; use std::mem;
use std::ops::{Add, Index, IndexMut, Mul, Sub}; use std::ops::{Add, Index, IndexMut, Mul, Sub};
@ -61,7 +59,6 @@ impl<N: SimdRealField> IndexMut<usize> for DualQuaternion<N> {
impl<N: SimdRealField> Mul<DualQuaternion<N>> for DualQuaternion<N> impl<N: SimdRealField> Mul<DualQuaternion<N>> for DualQuaternion<N>
where where
N::Element: SimdRealField, N::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U4, U1>,
{ {
type Output = DualQuaternion<N>; type Output = DualQuaternion<N>;
@ -75,8 +72,7 @@ where
impl<N: SimdRealField> Mul<N> for DualQuaternion<N> impl<N: SimdRealField> Mul<N> for DualQuaternion<N>
where where
N::Element: SimdRealField + SimdValue, N::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U4, U1>,
{ {
type Output = DualQuaternion<N>; type Output = DualQuaternion<N>;
@ -88,7 +84,6 @@ where
impl<N: SimdRealField> Add<DualQuaternion<N>> for DualQuaternion<N> impl<N: SimdRealField> Add<DualQuaternion<N>> for DualQuaternion<N>
where where
N::Element: SimdRealField, N::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U4, U1>,
{ {
type Output = DualQuaternion<N>; type Output = DualQuaternion<N>;
@ -100,7 +95,6 @@ where
impl<N: SimdRealField> Sub<DualQuaternion<N>> for DualQuaternion<N> impl<N: SimdRealField> Sub<DualQuaternion<N>> for DualQuaternion<N>
where where
N::Element: SimdRealField, N::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U4, U1>,
{ {
type Output = DualQuaternion<N>; type Output = DualQuaternion<N>;