Moebius

Struct Moebius 

Source
pub struct Moebius<T> { /* private fields */ }

Implementations§

Source§

impl<T> Moebius<T>

Source

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

Source

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

Source

pub fn into_matrix(self) -> Matrix2x2<T>

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn into_tuple(self) -> (T, T, T, T)

Source§

impl<T: Copy> Moebius<T>

Source

pub fn a(&self) -> T

Source

pub fn b(&self) -> T

Source

pub fn c(&self) -> T

Source

pub fn d(&self) -> T

Source§

impl<T> Moebius<T>

Source

pub fn a_ref(&self) -> &T

Source

pub fn b_ref(&self) -> &T

Source

pub fn c_ref(&self) -> &T

Source

pub fn d_ref(&self) -> &T

Source

pub fn a_mut(&mut self) -> &mut T

Source

pub fn b_mut(&mut self) -> &mut T

Source

pub fn c_mut(&mut self) -> &mut T

Source

pub fn d_mut(&mut self) -> &mut T

Source§

impl<T: Zero + One> Moebius<T>

Source

pub fn identity() -> Self

Source§

impl<T> Moebius<T>
where T: Add<Output = T> + Mul<Output = T> + Div<Output = T> + Copy,

Source

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

Source§

impl<T> Moebius<T>

Source

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

Source§

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

Source

pub fn det(&self) -> T

Source§

impl<T> Moebius<Complex<T>>
where T: Neg<Output = T> + Num + Copy,

Source

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

Source§

impl<T> Moebius<Complex<T>>
where T: Neg<Output = T> + Num + NumCast + Copy,

Source

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

Source§

impl<T> Moebius<T>
where T: Neg<Output = T> + Num + Copy,

Source

pub fn inv(self) -> Self

Trait Implementations§

Source§

impl<T> AbsDiffEq for Moebius<T>
where T: AbsDiffEq<Epsilon = T> + Copy,

Source§

type Epsilon = T

Used for specifying relative comparisons.
Source§

fn default_epsilon() -> Self::Epsilon

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

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

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

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

The inverse of AbsDiffEq::abs_diff_eq.
Source§

impl<T: Clone> Clone for Moebius<T>

Source§

fn clone(&self) -> Moebius<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for Moebius<T>

Source§

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

Formats the value using the given formatter. Read more
Source§

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

Source§

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

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

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

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

impl<T> Directional<Quaternion<T>> for Moebius<Complex<T>>

Source§

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

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

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

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

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

Source§

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

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

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

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

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
Source§

impl<'a, T> From<&'a Moebius<T>> for &'a [[T; 2]; 2]

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<'a, T> From<&'a mut Moebius<T>> for &'a mut [[T; 2]; 2]

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<T> From<Matrix<T, 2, 2>> for Moebius<T>

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<T> From<Moebius<T>> for Matrix2x2<T>

Source§

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

Converts to this type from the input type.
Source§

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

Source§

fn normalize(self) -> Self

Normalize object.
Source§

impl<T: PartialEq> PartialEq for Moebius<T>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

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

Source§

fn identity() -> Self

Identity transformation.
Source§

fn inv(self) -> Self

Inverse transformation.
Source§

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

Perform the transformation itself.
Source§

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

Find transformation directional derivative at specified point.
Source§

fn chain(self, other: Self) -> Self

Chain two transformations into a new one. Read more
Source§

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

Source§

fn identity() -> Self

Identity transformation.
Source§

fn inv(self) -> Self

Inverse transformation.
Source§

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

Perform the transformation itself.
Source§

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

Find transformation directional derivative at specified point.
Source§

fn chain(self, other: Self) -> Self

Chain two transformations into a new one. Read more
Source§

impl<T: Copy> Copy for Moebius<T>

Source§

impl<T> StructuralPartialEq for Moebius<T>

Auto Trait Implementations§

§

impl<T> Freeze for Moebius<T>
where T: Freeze,

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, const M: usize, const N: usize> Broadcast<Matrix<T, M, N>> for T
where T: Copy,

Source§

fn broadcast(self) -> Matrix<T, M, N>

Copy values along axes to get V.
Source§

impl<T, const N: usize> Broadcast<Vector<T, N>> for T
where T: Copy,

Source§

fn broadcast(self) -> Vector<T, N>

Copy values along axes to get V.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V