Struct vecmat::complex::Moebius[][src]

pub struct Moebius<T> { /* fields omitted */ }

Implementations

impl<T> Moebius<T>[src]

pub fn new(a: T, b: T, c: T, d: T) -> Self[src]

pub fn from_matrix(mat: Matrix2x2<T>) -> Self[src]

pub fn into_matrix(self) -> Matrix2x2<T>[src]

pub fn as_matrix(&self) -> &Matrix2x2<T>[src]

pub fn as_mut_matrix(&mut self) -> &mut Matrix2x2<T>[src]

pub fn from_array(array: [[T; 2]; 2]) -> Self[src]

pub fn into_array(self) -> [[T; 2]; 2][src]

pub fn as_array_of_arrays(&self) -> &[[T; 2]; 2][src]

pub fn as_mut_array_of_arrays(&mut self) -> &mut [[T; 2]; 2][src]

pub fn from_tuple(tup: (T, T, T, T)) -> Self[src]

pub fn into_tuple(self) -> (T, T, T, T)[src]

impl<T: Copy> Moebius<T>[src]

pub fn a(&self) -> T[src]

pub fn b(&self) -> T[src]

pub fn c(&self) -> T[src]

pub fn d(&self) -> T[src]

impl<T> Moebius<T>[src]

pub fn a_ref(&self) -> &T[src]

pub fn b_ref(&self) -> &T[src]

pub fn c_ref(&self) -> &T[src]

pub fn d_ref(&self) -> &T[src]

pub fn a_mut(&mut self) -> &mut T[src]

pub fn b_mut(&mut self) -> &mut T[src]

pub fn c_mut(&mut self) -> &mut T[src]

pub fn d_mut(&mut self) -> &mut T[src]

impl<T: Zero + One> Moebius<T>[src]

pub fn identity() -> Self[src]

impl<T> Moebius<T> where
    T: Add<Output = T> + Mul<Output = T> + Div<Output = T> + Copy
[src]

pub fn chain(self, other: Self) -> Self[src]

impl<T> Moebius<T>[src]

pub fn apply<U>(&self, x: U) -> U where
    T: Mul<U, Output = U> + Copy,
    U: Add<T, Output = U> + Div<Output = U> + Copy
[src]

impl<T: Neg<Output = T> + Num + Copy> Moebius<T>[src]

pub fn det(&self) -> T[src]

impl<T> Moebius<Complex<T>> where
    T: Neg<Output = T> + Num + Copy
[src]

pub fn deriv(&self, p: Complex<T>) -> Complex<T>[src]

impl<T> Moebius<Complex<T>> where
    T: Neg<Output = T> + Num + NumCast + Copy
[src]

pub fn deriv_dir(&self, p: Quaternion<T>, v: Quaternion<T>) -> Quaternion<T>[src]

impl<T> Moebius<T> where
    T: Neg<Output = T> + Num + Copy
[src]

pub fn inv(self) -> Self[src]

Trait Implementations

impl<T> AbsDiffEq<Moebius<T>> for Moebius<T> where
    T: AbsDiffEq<Epsilon = T> + Copy
[src]

type Epsilon = T

Used for specifying relative comparisons.

fn default_epsilon() -> Self::Epsilon[src]

The default tolerance to use when testing values that are close together. Read more

fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool[src]

A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool[src]

The inverse of AbsDiffEq::abs_diff_eq.

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

fn clone(&self) -> Moebius<T>[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<T: Debug> Debug for Moebius<T>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<T> Directional<Complex<T>> for Moebius<Complex<T>> where
    Self: Transform<Complex<T>>,
    Complex<T>: Normalize
[src]

fn apply_dir(&self, pos: Complex<T>, dir: Complex<T>) -> Complex<T>[src]

Returns the result of the direction transformation at the specified position.

fn apply_normal(&self, pos: Complex<T>, normal: Complex<T>) -> Complex<T>[src]

Returns the result of the normal transformation at the specified position. Read more

impl<T> Directional<Quaternion<T>> for Moebius<Complex<T>> where
    Self: Transform<Quaternion<T>>,
    Quaternion<T>: Normalize
[src]

fn apply_dir(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>[src]

Returns the result of the direction transformation at the specified position.

fn apply_normal(
    &self,
    pos: Quaternion<T>,
    normal: Quaternion<T>
) -> Quaternion<T>
[src]

Returns the result of the normal transformation at the specified position. Read more

impl<T: Neg<Output = T> + Num + Copy> Distribution<Moebius<T>> for Invertible where
    Invertible: Distribution<Matrix<T, 2, 2>>, 
[src]

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Moebius<T>[src]

Generate a random value of T, using rng as the source of randomness.

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
    R: Rng
[src]

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

impl<'a, T> From<&'a Moebius<T>> for &'a Matrix2x2<T>[src]

fn from(mo: &'a Moebius<T>) -> Self[src]

Performs the conversion.

impl<'a, T> From<&'a mut Moebius<T>> for &'a mut Matrix2x2<T>[src]

fn from(mo: &'a mut Moebius<T>) -> Self[src]

Performs the conversion.

impl<T> From<[[T; 2]; 2]> for Moebius<T>[src]

fn from(array: [[T; 2]; 2]) -> Self[src]

Performs the conversion.

impl<T> From<Matrix<T, 2_usize, 2_usize>> for Moebius<T>[src]

fn from(mat: Matrix2x2<T>) -> Self[src]

Performs the conversion.

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

fn from(mo: Moebius<T>) -> Self[src]

Performs the conversion.

impl<T: Neg<Output = T> + Num + Copy> Normalize for Moebius<T>[src]

fn normalize(self) -> Self[src]

Normalize object.

impl<T: PartialEq> PartialEq<Moebius<T>> for Moebius<T>[src]

fn eq(&self, other: &Moebius<T>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Moebius<T>) -> bool[src]

This method tests for !=.

impl<T> Transform<Complex<T>> for Moebius<Complex<T>> where
    T: Neg<Output = T> + Num + Copy
[src]

fn identity() -> Self[src]

Identity transformation.

fn inv(self) -> Self[src]

Inverse transformation.

fn apply(&self, pos: Complex<T>) -> Complex<T>[src]

Perform the transformation itself.

fn deriv(&self, pos: Complex<T>, dir: Complex<T>) -> Complex<T>[src]

Find transformation directional derivative at specified point.

fn chain(self, other: Self) -> Self[src]

Chain two transformations into a new one. Read more

impl<T> Transform<Quaternion<T>> for Moebius<Complex<T>> where
    T: Neg<Output = T> + Num + NumCast + Copy
[src]

fn identity() -> Self[src]

Identity transformation.

fn inv(self) -> Self[src]

Inverse transformation.

fn apply(&self, pos: Quaternion<T>) -> Quaternion<T>[src]

Perform the transformation itself.

fn deriv(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>[src]

Find transformation directional derivative at specified point.

fn chain(self, other: Self) -> Self[src]

Chain two transformations into a new one. Read more

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

impl<T> StructuralPartialEq for Moebius<T>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V