Skip to content

Commit

Permalink
Clean up DualQuat bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
chinedufn committed Dec 18, 2020
1 parent 89134ef commit 7ec5d00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/geometry/dual_quaternion_construction.rs
Expand Up @@ -16,9 +16,6 @@ impl<N: SimdRealField> DualQuaternion<N> {
pub fn from_real_and_dual(real: Quaternion<N>, dual: Quaternion<N>) -> Self {
Self { real, dual }
}
}

impl<N: SimdRealField> DualQuaternion<N> {
/// The dual quaternion multiplicative identity
///
/// # Example
Expand Down
10 changes: 2 additions & 8 deletions src/geometry/dual_quaternion_ops.rs
Expand Up @@ -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};

Expand Down Expand Up @@ -61,7 +59,6 @@ impl<N: SimdRealField> IndexMut<usize> for DualQuaternion<N> {
impl<N: SimdRealField> Mul<DualQuaternion<N>> for DualQuaternion<N>
where
N::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U4, U1>,
{
type Output = DualQuaternion<N>;

Expand All @@ -75,8 +72,7 @@ where

impl<N: SimdRealField> Mul<N> for DualQuaternion<N>
where
N::Element: SimdRealField + SimdValue,
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U4, U1>,
N::Element: SimdRealField,
{
type Output = DualQuaternion<N>;

Expand All @@ -88,7 +84,6 @@ where
impl<N: SimdRealField> Add<DualQuaternion<N>> for DualQuaternion<N>
where
N::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U4, U1>,
{
type Output = DualQuaternion<N>;

Expand All @@ -100,7 +95,6 @@ where
impl<N: SimdRealField> Sub<DualQuaternion<N>> for DualQuaternion<N>
where
N::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U4, U1>,
{
type Output = DualQuaternion<N>;

Expand Down

0 comments on commit 7ec5d00

Please sign in to comment.