[−][src]Struct libraymarcher::Quaternion
Quaternion type, a 4 dimensional number type.
Implementations
impl Quaternion
[src]
pub fn new(r: f64, i: f64, j: f64, k: f64) -> Self
[src]
Constructs a new Quaternion. r
is the real value. i
, j
, k
are nonreal.
pub fn magnitude(&self) -> f64
[src]
Magnuitude of this Quaternion, using the Euclidean norm.
Trait Implementations
impl Add<Quaternion> for Quaternion
[src]
type Output = Quaternion
The resulting type after applying the +
operator.
fn add(self, rhs: Quaternion) -> Self::Output
[src]
impl Clone for Quaternion
[src]
fn clone(&self) -> Quaternion
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Quaternion
[src]
impl Debug for Quaternion
[src]
impl Mul<Quaternion> for Quaternion
[src]
type Output = Quaternion
The resulting type after applying the *
operator.
fn mul(self, rhs: Quaternion) -> Self::Output
[src]
impl Mul<Quaternion> for f64
[src]
type Output = Quaternion
The resulting type after applying the *
operator.
fn mul(self, rhs: Quaternion) -> Self::Output
[src]
Auto Trait Implementations
impl RefUnwindSafe for Quaternion
impl Send for Quaternion
impl Sync for Quaternion
impl Unpin for Quaternion
impl UnwindSafe for Quaternion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,