Struct ggez::graphics::na::Quaternion
[−]
[src]
#[repr(C)]pub struct Quaternion<N> where
N: Real, { pub coords: Matrix<N, U4, U1, <DefaultAllocator as Allocator<N, U4, U1>>::Buffer>, }
A quaternion. See the type alias UnitQuaternion = Unit<Quaternion>
for a quaternion
that may be used as a rotation.
Fields
coords: Matrix<N, U4, U1, <DefaultAllocator as Allocator<N, U4, U1>>::Buffer>
This quaternion as a 4D vector of coordinates in the [ x, y, z, w ]
storage order.
Methods
impl<N> Quaternion<N> where
N: Real,
[src]
N: Real,
fn into_owned(self) -> Quaternion<N>
[src]
: This method is a no-op and will be removed in a future release.
Moves this unit quaternion into one that owns its data.
fn clone_owned(&self) -> Quaternion<N>
[src]
: This method is a no-op and will be removed in a future release.
Clones this unit quaternion into one that owns its data.
fn normalize(&self) -> Quaternion<N>
[src]
Normalizes this quaternion.
fn conjugate(&self) -> Quaternion<N>
[src]
Compute the conjugate of this quaternion.
fn try_inverse(&self) -> Option<Quaternion<N>>
[src]
Inverts this quaternion if it is not zero.
fn lerp(&self, other: &Quaternion<N>, t: N) -> Quaternion<N>
[src]
Linear interpolation between two quaternion.
fn vector(
&self
) -> Matrix<N, U3, U1, SliceStorage<N, U3, U1, <<DefaultAllocator as Allocator<N, U4, U1>>::Buffer as Storage<N, U4, U1>>::RStride, <<DefaultAllocator as Allocator<N, U4, U1>>::Buffer as Storage<N, U4, U1>>::CStride>>
[src]
&self
) -> Matrix<N, U3, U1, SliceStorage<N, U3, U1, <<DefaultAllocator as Allocator<N, U4, U1>>::Buffer as Storage<N, U4, U1>>::RStride, <<DefaultAllocator as Allocator<N, U4, U1>>::Buffer as Storage<N, U4, U1>>::CStride>>
The vector part (i, j, k)
of this quaternion.
fn scalar(&self) -> N
[src]
The scalar part w
of this quaternion.
fn as_vector(
&self
) -> &Matrix<N, U4, U1, <DefaultAllocator as Allocator<N, U4, U1>>::Buffer>
[src]
&self
) -> &Matrix<N, U4, U1, <DefaultAllocator as Allocator<N, U4, U1>>::Buffer>
Reinterprets this quaternion as a 4D vector.
fn norm(&self) -> N
[src]
The norm of this quaternion.
fn norm_squared(&self) -> N
[src]
The squared norm of this quaternion.
fn polar_decomposition(
&self
) -> (N, N, Option<Unit<Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>>>)
[src]
&self
) -> (N, N, Option<Unit<Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>>>)
The polar decomposition of this quaternion.
Returns, from left to right: the quaternion norm, the half rotation angle, the rotation
axis. If the rotation angle is zero, the rotation axis is set to None
.
fn exp(&self) -> Quaternion<N>
[src]
Compute the exponential of a quaternion.
fn ln(&self) -> Quaternion<N>
[src]
Compute the natural logarithm of a quaternion.
fn powf(&self, n: N) -> Quaternion<N>
[src]
Raise the quaternion to a given floating power.
fn as_vector_mut(
&mut self
) -> &mut Matrix<N, U4, U1, <DefaultAllocator as Allocator<N, U4, U1>>::Buffer>
[src]
&mut self
) -> &mut Matrix<N, U4, U1, <DefaultAllocator as Allocator<N, U4, U1>>::Buffer>
Transforms this quaternion into its 4D vector form (Vector part, Scalar part).
fn vector_mut(
&mut self
) -> Matrix<N, U3, U1, SliceStorageMut<N, U3, U1, <<DefaultAllocator as Allocator<N, U4, U1>>::Buffer as Storage<N, U4, U1>>::RStride, <<DefaultAllocator as Allocator<N, U4, U1>>::Buffer as Storage<N, U4, U1>>::CStride>>
[src]
&mut self
) -> Matrix<N, U3, U1, SliceStorageMut<N, U3, U1, <<DefaultAllocator as Allocator<N, U4, U1>>::Buffer as Storage<N, U4, U1>>::RStride, <<DefaultAllocator as Allocator<N, U4, U1>>::Buffer as Storage<N, U4, U1>>::CStride>>
The mutable vector part (i, j, k)
of this quaternion.
fn conjugate_mut(&mut self)
[src]
Replaces this quaternion by its conjugate.
fn try_inverse_mut(&mut self) -> bool
[src]
Inverts this quaternion in-place if it is not zero.
fn normalize_mut(&mut self) -> N
[src]
Normalizes this quaternion.
impl<N> Quaternion<N> where
N: Real,
[src]
N: Real,
fn from_vector(
vector: Matrix<N, U4, U1, <DefaultAllocator as Allocator<N, U4, U1>>::Buffer>
) -> Quaternion<N>
[src]
vector: Matrix<N, U4, U1, <DefaultAllocator as Allocator<N, U4, U1>>::Buffer>
) -> Quaternion<N>
Creates a quaternion from a 4D vector. The quaternion scalar part corresponds to the w
vector component.
fn new(w: N, x: N, y: N, z: N) -> Quaternion<N>
[src]
Creates a new quaternion from its individual components. Note that the arguments order does not follow the storage order.
The storage order is [ x, y, z, w ]
.
fn from_parts<SB>(scalar: N, vector: Matrix<N, U3, U1, SB>) -> Quaternion<N> where
SB: Storage<N, U3, U1>,
[src]
SB: Storage<N, U3, U1>,
Creates a new quaternion from its scalar and vector parts. Note that the arguments order does not follow the storage order.
The storage order is [ vector, scalar ].
fn from_polar_decomposition<SB>(
scale: N,
theta: N,
axis: Unit<Matrix<N, U3, U1, SB>>
) -> Quaternion<N> where
SB: Storage<N, U3, U1>,
[src]
scale: N,
theta: N,
axis: Unit<Matrix<N, U3, U1, SB>>
) -> Quaternion<N> where
SB: Storage<N, U3, U1>,
Creates a new quaternion from its polar decomposition.
Note that axis
is assumed to be a unit vector.
fn identity() -> Quaternion<N>
[src]
The quaternion multiplicative identity.
Trait Implementations
impl<N> Neg for Quaternion<N> where
N: Real,
[src]
N: Real,
type Output = Quaternion<N>
fn neg(self) -> <Quaternion<N> as Neg>::Output
[src]
impl<'a, N> Neg for &'a Quaternion<N> where
N: Real,
[src]
N: Real,
type Output = Quaternion<N>
fn neg(self) -> <&'a Quaternion<N> as Neg>::Output
[src]
impl<N> Rand for Quaternion<N> where
N: Rand + Real,
[src]
N: Rand + Real,
fn rand<R>(rng: &mut R) -> Quaternion<N> where
R: Rng,
[src]
R: Rng,
impl<N> Copy for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> Clone for Quaternion<N> where
N: Real,
[src]
N: Real,
fn clone(&self) -> Quaternion<N>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<N> AbstractMonoid<Additive> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> AbstractMonoid<Multiplicative> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N1, N2> SubsetOf<Quaternion<N2>> for Quaternion<N1> where
N1: Real,
N2: Real + SupersetOf<N1>,
[src]
N1: Real,
N2: Real + SupersetOf<N1>,
fn to_superset(&self) -> Quaternion<N2>
[src]
fn is_in_subset(q: &Quaternion<N2>) -> bool
[src]
unsafe fn from_superset_unchecked(q: &Quaternion<N2>) -> Quaternion<N1>
[src]
impl<N> Inverse<Additive> for Quaternion<N> where
N: Real,
[src]
N: Real,
fn inverse(&self) -> Quaternion<N>
[src]
impl<'a, N> Div<N> for &'a Quaternion<N> where
N: Real,
[src]
N: Real,
type Output = Quaternion<N>
fn div(self, n: N) -> <&'a Quaternion<N> as Div<N>>::Output
[src]
impl<N> Div<N> for Quaternion<N> where
N: Real,
[src]
N: Real,
type Output = Quaternion<N>
fn div(self, n: N) -> <Quaternion<N> as Div<N>>::Output
[src]
impl<N> AbstractSemigroup<Additive> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> AbstractSemigroup<Multiplicative> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> NormedSpace for Quaternion<N> where
N: Real,
[src]
N: Real,
fn norm_squared(&self) -> N
[src]
fn norm(&self) -> N
[src]
fn normalize(&self) -> Quaternion<N>
[src]
fn normalize_mut(&mut self) -> N
[src]
fn try_normalize(&self, min_norm: N) -> Option<Quaternion<N>>
[src]
fn try_normalize_mut(&mut self, min_norm: N) -> Option<N>
[src]
impl<N> AbstractLoop<Additive> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> DivAssign<N> for Quaternion<N> where
N: Real,
[src]
N: Real,
fn div_assign(&mut self, n: N)
[src]
impl<N> VectorSpace for Quaternion<N> where
N: Real,
[src]
N: Real,
type Field = N
impl<N> ApproxEq for Quaternion<N> where
N: ApproxEq<Epsilon = N> + Real,
[src]
N: ApproxEq<Epsilon = N> + Real,
type Epsilon = N
fn default_epsilon() -> <Quaternion<N> as ApproxEq>::Epsilon
[src]
fn default_max_relative() -> <Quaternion<N> as ApproxEq>::Epsilon
[src]
fn default_max_ulps() -> u32
[src]
fn relative_eq(
&self,
other: &Quaternion<N>,
epsilon: <Quaternion<N> as ApproxEq>::Epsilon,
max_relative: <Quaternion<N> as ApproxEq>::Epsilon
) -> bool
[src]
&self,
other: &Quaternion<N>,
epsilon: <Quaternion<N> as ApproxEq>::Epsilon,
max_relative: <Quaternion<N> as ApproxEq>::Epsilon
) -> bool
fn ulps_eq(
&self,
other: &Quaternion<N>,
epsilon: <Quaternion<N> as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
[src]
&self,
other: &Quaternion<N>,
epsilon: <Quaternion<N> as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
impl<N> Hash for Quaternion<N> where
N: Hash + Real,
[src]
N: Hash + Real,
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<N> DerefMut for Quaternion<N> where
N: Real,
[src]
N: Real,
fn deref_mut(&mut self) -> &mut <Quaternion<N> as Deref>::Target
[src]
impl<N> PartialEq<Quaternion<N>> for Quaternion<N> where
N: Real,
[src]
N: Real,
fn eq(&self, rhs: &Quaternion<N>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<N> Add<Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn add(
self,
rhs: Quaternion<N>
) -> <Quaternion<N> as Add<Quaternion<N>>>::Output
[src]
self,
rhs: Quaternion<N>
) -> <Quaternion<N> as Add<Quaternion<N>>>::Output
impl<'a, N> Add<Quaternion<N>> for &'a Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn add(
self,
rhs: Quaternion<N>
) -> <&'a Quaternion<N> as Add<Quaternion<N>>>::Output
[src]
self,
rhs: Quaternion<N>
) -> <&'a Quaternion<N> as Add<Quaternion<N>>>::Output
impl<'b, N> Add<&'b Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn add(
self,
rhs: &'b Quaternion<N>
) -> <Quaternion<N> as Add<&'b Quaternion<N>>>::Output
[src]
self,
rhs: &'b Quaternion<N>
) -> <Quaternion<N> as Add<&'b Quaternion<N>>>::Output
impl<'a, 'b, N> Add<&'b Quaternion<N>> for &'a Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn add(
self,
rhs: &'b Quaternion<N>
) -> <&'a Quaternion<N> as Add<&'b Quaternion<N>>>::Output
[src]
self,
rhs: &'b Quaternion<N>
) -> <&'a Quaternion<N> as Add<&'b Quaternion<N>>>::Output
impl<N> Debug for Quaternion<N> where
N: Debug + Real,
[src]
N: Debug + Real,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<N> FiniteDimVectorSpace for Quaternion<N> where
N: Real,
[src]
N: Real,
fn dimension() -> usize
[src]
fn canonical_basis_element(i: usize) -> Quaternion<N>
[src]
fn dot(&self, other: &Quaternion<N>) -> N
[src]
unsafe fn component_unchecked(&self, i: usize) -> &N
[src]
unsafe fn component_unchecked_mut(&mut self, i: usize) -> &mut N
[src]
impl<'b, N> AddAssign<&'b Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
fn add_assign(&mut self, rhs: &'b Quaternion<N>)
[src]
impl<N> AddAssign<Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
fn add_assign(&mut self, rhs: Quaternion<N>)
[src]
impl<N> AbstractQuasigroup<Additive> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> SubAssign<Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
fn sub_assign(&mut self, rhs: Quaternion<N>)
[src]
impl<'b, N> SubAssign<&'b Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
fn sub_assign(&mut self, rhs: &'b Quaternion<N>)
[src]
impl<N> AbstractGroup<Additive> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> One for Quaternion<N> where
N: Real,
[src]
N: Real,
fn one() -> Quaternion<N>
[src]
impl<N> AbstractModule<Additive, Additive, Multiplicative> for Quaternion<N> where
N: Real,
[src]
N: Real,
type AbstractRing = N
fn multiply_by(&self, n: N) -> Quaternion<N>
[src]
impl<N> Index<usize> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> Identity<Multiplicative> for Quaternion<N> where
N: Real,
[src]
N: Real,
fn identity() -> Quaternion<N>
[src]
impl<N> Identity<Additive> for Quaternion<N> where
N: Real,
[src]
N: Real,
fn identity() -> Quaternion<N>
[src]
impl<N> Eq for Quaternion<N> where
N: Eq + Real,
[src]
N: Eq + Real,
impl<N> Deref for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> AbstractGroupAbelian<Additive> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> Zero for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<N> MulAssign<Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
fn mul_assign(&mut self, rhs: Quaternion<N>)
[src]
impl<N> MulAssign<N> for Quaternion<N> where
N: Real,
[src]
N: Real,
fn mul_assign(&mut self, n: N)
[src]
impl<'b, N> MulAssign<&'b Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
fn mul_assign(&mut self, rhs: &'b Quaternion<N>)
[src]
impl<N> AbstractMagma<Additive> for Quaternion<N> where
N: Real,
[src]
N: Real,
fn operate(&self, rhs: &Quaternion<N>) -> Quaternion<N>
[src]
impl<N> AbstractMagma<Multiplicative> for Quaternion<N> where
N: Real,
[src]
N: Real,
fn operate(&self, rhs: &Quaternion<N>) -> Quaternion<N>
[src]
impl<N> Mul<Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn mul(
self,
rhs: Quaternion<N>
) -> <Quaternion<N> as Mul<Quaternion<N>>>::Output
[src]
self,
rhs: Quaternion<N>
) -> <Quaternion<N> as Mul<Quaternion<N>>>::Output
impl<'a, N> Mul<N> for &'a Quaternion<N> where
N: Real,
[src]
N: Real,
type Output = Quaternion<N>
fn mul(self, n: N) -> <&'a Quaternion<N> as Mul<N>>::Output
[src]
impl<N> Mul<N> for Quaternion<N> where
N: Real,
[src]
N: Real,
type Output = Quaternion<N>
fn mul(self, n: N) -> <Quaternion<N> as Mul<N>>::Output
[src]
impl<'a, N> Mul<Quaternion<N>> for &'a Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn mul(
self,
rhs: Quaternion<N>
) -> <&'a Quaternion<N> as Mul<Quaternion<N>>>::Output
[src]
self,
rhs: Quaternion<N>
) -> <&'a Quaternion<N> as Mul<Quaternion<N>>>::Output
impl<'b, N> Mul<&'b Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn mul(
self,
rhs: &'b Quaternion<N>
) -> <Quaternion<N> as Mul<&'b Quaternion<N>>>::Output
[src]
self,
rhs: &'b Quaternion<N>
) -> <Quaternion<N> as Mul<&'b Quaternion<N>>>::Output
impl<'a, 'b, N> Mul<&'b Quaternion<N>> for &'a Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn mul(
self,
rhs: &'b Quaternion<N>
) -> <&'a Quaternion<N> as Mul<&'b Quaternion<N>>>::Output
[src]
self,
rhs: &'b Quaternion<N>
) -> <&'a Quaternion<N> as Mul<&'b Quaternion<N>>>::Output
impl<N> Module for Quaternion<N> where
N: Real,
[src]
N: Real,
type Ring = N
impl<N> IndexMut<usize> for Quaternion<N> where
N: Real,
[src]
N: Real,
impl<'a, 'b, N> Sub<&'b Quaternion<N>> for &'a Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn sub(
self,
rhs: &'b Quaternion<N>
) -> <&'a Quaternion<N> as Sub<&'b Quaternion<N>>>::Output
[src]
self,
rhs: &'b Quaternion<N>
) -> <&'a Quaternion<N> as Sub<&'b Quaternion<N>>>::Output
impl<'b, N> Sub<&'b Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn sub(
self,
rhs: &'b Quaternion<N>
) -> <Quaternion<N> as Sub<&'b Quaternion<N>>>::Output
[src]
self,
rhs: &'b Quaternion<N>
) -> <Quaternion<N> as Sub<&'b Quaternion<N>>>::Output
impl<N> Sub<Quaternion<N>> for Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn sub(
self,
rhs: Quaternion<N>
) -> <Quaternion<N> as Sub<Quaternion<N>>>::Output
[src]
self,
rhs: Quaternion<N>
) -> <Quaternion<N> as Sub<Quaternion<N>>>::Output
impl<'a, N> Sub<Quaternion<N>> for &'a Quaternion<N> where
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
[src]
N: Real,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U4, U1>,
type Output = Quaternion<N>
fn sub(
self,
rhs: Quaternion<N>
) -> <&'a Quaternion<N> as Sub<Quaternion<N>>>::Output
[src]
self,
rhs: Quaternion<N>
) -> <&'a Quaternion<N> as Sub<Quaternion<N>>>::Output
impl<N> Display for Quaternion<N> where
N: Display + Real,
[src]
N: Display + Real,