Struct dual_quat::Dual[][src]

pub struct Dual<T> {
    pub r: T,
    pub d: T,
}

Fields

r: Td: T

Implementations

impl<T> Dual<T>[src]

pub fn new(r: T, d: T) -> Dual<T>[src]

impl<T> Dual<T> where
    T: RealField
[src]

pub fn sqrt(&self) -> Dual<T>[src]

impl<T> Dual<Quaternion<T>> where
    T: SimdRealField + Mul<Output = T> + Div<Output = T> + Copy,
    T::Element: SimdRealField
[src]

pub fn rigid_transformation(
    q: UnitQuaternion<T>,
    t: Vector3<T>
) -> DualQuaternion<T>
[src]

pub fn from_real(v: T) -> DualQuaternion<T>[src]

pub fn conjugate(&self) -> DualQuaternion<T>[src]

pub fn norm_squared(&self) -> Dual<T>[src]

pub fn norm(&self) -> Dual<T>[src]

pub fn magnitude(&self) -> Dual<T>[src]

pub fn normalize(&self) -> DualQuaternion<T>[src]

pub fn squared(&self) -> DualQuaternion<T>[src]

pub fn rotation(&self) -> UnitQuaternion<T>[src]

pub fn translation(self) -> Vector3<T>[src]

pub fn transform(&self, v: &Point3<T>) -> Point3<T>[src]

pub fn transform_normal(&self, n: &Vector3<T>) -> Vector3<T>[src]

pub fn transform_position_and_normal(
    &self,
    p: &Point3<T>,
    n: &Vector3<T>
) -> (Point3<T>, Vector3<T>)
[src]

Trait Implementations

impl<T> Add<Dual<T>> for Dual<T> where
    T: Add<Output = T>, 
[src]

type Output = Dual<T>

The resulting type after applying the + operator.

impl<T> AddAssign<Dual<T>> for Dual<T> where
    T: Add<Output = T> + Copy
[src]

impl<T: Clone> Clone for Dual<T>[src]

impl<T: Debug> Debug for Dual<T>[src]

impl<'de, T> Deserialize<'de> for Dual<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Div<Dual<T>> for Dual<T> where
    T: Sub<Output = T> + Mul<Output = T> + Div<Output = T> + Copy
[src]

type Output = Dual<T>

The resulting type after applying the / operator.

impl<T> Div<T> for Dual<T> where
    T: Mul<Output = T> + Div<Output = T> + Copy
[src]

type Output = Dual<T>

The resulting type after applying the / operator.

impl<T> DivAssign<Dual<T>> for Dual<T> where
    T: Sub<Output = T> + Mul<Output = T> + Div<Output = T> + Copy
[src]

impl<T> DivAssign<T> for Dual<T> where
    T: Mul<Output = T> + Div<Output = T> + Copy
[src]

impl<T> Mul<Dual<T>> for Dual<T> where
    T: Add<Output = T> + Mul<Output = T> + Copy
[src]

type Output = Dual<T>

The resulting type after applying the * operator.

impl<T> Mul<T> for Dual<T> where
    T: Mul<Output = T> + Copy
[src]

type Output = Dual<T>

The resulting type after applying the * operator.

impl<T> MulAssign<Dual<T>> for Dual<T> where
    T: Add<Output = T> + Mul<Output = T> + Copy
[src]

impl<T> MulAssign<T> for Dual<T> where
    T: Mul<Output = T> + Copy
[src]

impl<T> Serialize for Dual<T> where
    T: Serialize
[src]

impl<T> Sub<Dual<T>> for Dual<T> where
    T: Sub<Output = T>, 
[src]

type Output = Self

The resulting type after applying the - operator.

impl<T> SubAssign<Dual<T>> for Dual<T> where
    T: Sub<Output = T> + Copy
[src]

impl<T: Copy> Copy for Dual<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Dual<T> where
    T: RefUnwindSafe

impl<T> Send for Dual<T> where
    T: Send

impl<T> Sync for Dual<T> where
    T: Sync

impl<T> Unpin for Dual<T> where
    T: Unpin

impl<T> UnwindSafe for Dual<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T, Right> ClosedAdd<Right> for T where
    T: Add<Right, Output = T> + AddAssign<Right>, 
[src]

impl<T, Right> ClosedDiv<Right> for T where
    T: Div<Right, Output = T> + DivAssign<Right>, 
[src]

impl<T, Right> ClosedMul<Right> for T where
    T: Mul<Right, Output = T> + MulAssign<Right>, 
[src]

impl<T, Right> ClosedSub<Right> for T where
    T: Sub<Right, Output = T> + SubAssign<Right>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]