Struct geotrans::Quaternion
source · [−]pub struct Quaternion { /* private fields */ }
Expand description
Quaternion
Implementations
sourceimpl Quaternion
impl Quaternion
pub fn new<T: AsRef<[f64]>>(scalar: f64, vector: T) -> Self
pub fn pure<T: AsRef<[f64]>>(u: T) -> Self
pub fn unit<T: AsRef<[f64]>>(theta: f64, u: T) -> Self
pub fn identity() -> Self
pub fn complex_conjugate(&self) -> Self
pub fn norm_squared(&self) -> f64
pub fn norm(&self) -> f64
pub fn inverse(&self) -> Self
pub fn vector_as_slice(&self) -> &[f64]
Trait Implementations
sourceimpl Add<Quaternion> for Quaternion
impl Add<Quaternion> for Quaternion
sourceimpl Clone for Quaternion
impl Clone for Quaternion
sourcefn clone(&self) -> Quaternion
fn clone(&self) -> Quaternion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Quaternion
impl Debug for Quaternion
sourceimpl Display for Quaternion
impl Display for Quaternion
sourceimpl Div<f64> for &Quaternion
impl Div<f64> for &Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the /
operator.
sourcefn div(self, rhs: f64) -> Quaternion
fn div(self, rhs: f64) -> Quaternion
Performs the /
operation. Read more
sourceimpl Div<f64> for Quaternion
impl Div<f64> for Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the /
operator.
sourcefn div(self, rhs: f64) -> Quaternion
fn div(self, rhs: f64) -> Quaternion
Performs the /
operation. Read more
sourceimpl From<&'_ mut Vector> for Quaternion
impl From<&'_ mut Vector> for Quaternion
sourceimpl Mul<&'_ Quaternion> for &Quaternion
impl Mul<&'_ Quaternion> for &Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: &Quaternion) -> Quaternion
fn mul(self, rhs: &Quaternion) -> Quaternion
Performs the *
operation. Read more
sourceimpl Mul<&'_ Quaternion> for Quaternion
impl Mul<&'_ Quaternion> for Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: &Quaternion) -> Quaternion
fn mul(self, rhs: &Quaternion) -> Quaternion
Performs the *
operation. Read more
sourceimpl Mul<&'_ Quaternion> for f64
impl Mul<&'_ Quaternion> for f64
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: &Quaternion) -> Quaternion
fn mul(self, rhs: &Quaternion) -> Quaternion
Performs the *
operation. Read more
sourceimpl Mul<Quaternion> for &Quaternion
impl Mul<Quaternion> for &Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: Quaternion) -> Quaternion
fn mul(self, rhs: Quaternion) -> Quaternion
Performs the *
operation. Read more
sourceimpl Mul<Quaternion> for Quaternion
impl Mul<Quaternion> for Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: Quaternion) -> Quaternion
fn mul(self, rhs: Quaternion) -> Quaternion
Performs the *
operation. Read more
sourceimpl PartialEq<Quaternion> for Quaternion
impl PartialEq<Quaternion> for Quaternion
sourceimpl Sub<Quaternion> for Quaternion
impl Sub<Quaternion> for Quaternion
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more