[−][src]Struct aljabar::Quaternion
A Quaternion
, composed of a scalar and a Vector3
.
Fields
s: T
v: Vector3<T>
Methods
impl<T> Quaternion<T>
[src]
pub const fn new(w: T, xi: T, yj: T, zk: T) -> Quaternion<T>
[src]
impl<T> Quaternion<T> where
T: Clone,
[src]
T: Clone,
Trait Implementations
impl<T> Rotation<3> for Quaternion<T> where
T: Real + Clone,
[src]
T: Real + Clone,
type Scalar = T
fn rotate_vector(self, v: Vector<Self::Scalar, 3>) -> Vector<Self::Scalar, 3>
[src]
fn rotate_point(
self,
p: Point<Self::Scalar, { DIMS }>
) -> Point<Self::Scalar, { DIMS }>
[src]
self,
p: Point<Self::Scalar, { DIMS }>
) -> Point<Self::Scalar, { DIMS }>
impl<T> From<Euler<T>> for Quaternion<T> where
T: Angle + Clone,
[src]
T: Angle + Clone,
fn from(euler: Euler<T>) -> Quaternion<T>
[src]
impl<T> Div<T> for Quaternion<T> where
T: Real + Clone,
[src]
T: Real + Clone,
type Output = Quaternion<T>
The resulting type after applying the /
operator.
fn div(self, scalar: T) -> Self
[src]
impl<T> Mul<T> for Quaternion<T> where
T: Real + Clone,
[src]
T: Real + Clone,
type Output = Quaternion<T>
The resulting type after applying the *
operator.
fn mul(self, scalar: T) -> Self
[src]
impl<T> Mul<Quaternion<T>> for Quaternion<T> where
T: Real + Clone,
[src]
T: Real + Clone,
type Output = Quaternion<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Quaternion<T>) -> Self
[src]
impl<T> Mul<Vector<T, 3>> for Quaternion<T> where
T: Real + Clone,
[src]
T: Real + Clone,
type Output = Vector3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector3<T>) -> Vector3<T>
[src]
impl<T> MulAssign<T> for Quaternion<T> where
T: Real + Clone,
[src]
T: Real + Clone,
fn mul_assign(&mut self, scalar: T)
[src]
impl<T> DivAssign<T> for Quaternion<T> where
T: Real + Clone,
[src]
T: Real + Clone,
fn div_assign(&mut self, scalar: T)
[src]
Auto Trait Implementations
impl<T> Send for Quaternion<T> where
T: Send,
T: Send,
impl<T> Sync for Quaternion<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Quaternion<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Quaternion<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Quaternion<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,