pub struct Moebius<T> { /* private fields */ }
Implementations
sourceimpl<T> Moebius<T>
impl<T> Moebius<T>
pub fn new(a: T, b: T, c: T, d: T) -> Self
pub fn from_matrix(mat: Matrix2x2<T>) -> Self
pub fn into_matrix(self) -> Matrix2x2<T>
pub fn as_matrix(&self) -> &Matrix2x2<T>
pub fn as_mut_matrix(&mut self) -> &mut Matrix2x2<T>
pub fn from_array(array: [[T; 2]; 2]) -> Self
pub fn into_array(self) -> [[T; 2]; 2]
pub fn as_array_of_arrays(&self) -> &[[T; 2]; 2]
pub fn as_mut_array_of_arrays(&mut self) -> &mut [[T; 2]; 2]
pub fn from_tuple(tup: (T, T, T, T)) -> Self
pub fn into_tuple(self) -> (T, T, T, T)
sourceimpl<T> Moebius<Complex<T>> where
T: Neg<Output = T> + Num + NumCast + Copy,
impl<T> Moebius<Complex<T>> where
T: Neg<Output = T> + Num + NumCast + Copy,
pub fn deriv_dir(&self, p: Quaternion<T>, v: Quaternion<T>) -> Quaternion<T>
Trait Implementations
sourceimpl<T> AbsDiffEq<Moebius<T>> for Moebius<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
impl<T> AbsDiffEq<Moebius<T>> for Moebius<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
type Epsilon = T
type Epsilon = T
Used for specifying relative comparisons.
sourcefn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
sourcefn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
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. Read more
sourcefn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of AbsDiffEq::abs_diff_eq
.
sourceimpl<T> Directional<Complex<T>> for Moebius<Complex<T>> where
Self: Transform<Complex<T>>,
Complex<T>: Normalize,
impl<T> Directional<Complex<T>> for Moebius<Complex<T>> where
Self: Transform<Complex<T>>,
Complex<T>: Normalize,
sourceimpl<T> Directional<Quaternion<T>> for Moebius<Complex<T>> where
Self: Transform<Quaternion<T>>,
Quaternion<T>: Normalize,
impl<T> Directional<Quaternion<T>> for Moebius<Complex<T>> where
Self: Transform<Quaternion<T>>,
Quaternion<T>: Normalize,
sourcefn apply_dir(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>
fn apply_dir(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>
Returns the result of the direction transformation at the specified position.
sourcefn apply_normal(
&self,
pos: Quaternion<T>,
normal: Quaternion<T>
) -> Quaternion<T>
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
sourceimpl<T: Neg<Output = T> + Num + Copy> Distribution<Moebius<T>> for Invertible where
Invertible: Distribution<Matrix<T, 2, 2>>,
impl<T: Neg<Output = T> + Num + Copy> Distribution<Moebius<T>> for Invertible where
Invertible: Distribution<Matrix<T, 2, 2>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Moebius<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Moebius<T>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T> Transform<Complex<T>> for Moebius<Complex<T>> where
T: Neg<Output = T> + Num + Copy,
impl<T> Transform<Complex<T>> for Moebius<Complex<T>> where
T: Neg<Output = T> + Num + Copy,
sourceimpl<T> Transform<Quaternion<T>> for Moebius<Complex<T>> where
T: Neg<Output = T> + Num + NumCast + Copy,
impl<T> Transform<Quaternion<T>> for Moebius<Complex<T>> where
T: Neg<Output = T> + Num + NumCast + Copy,
sourcefn apply(&self, pos: Quaternion<T>) -> Quaternion<T>
fn apply(&self, pos: Quaternion<T>) -> Quaternion<T>
Perform the transformation itself.
sourcefn deriv(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>
fn deriv(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>
Find transformation directional derivative at specified point.
impl<T: Copy> Copy for Moebius<T>
impl<T> StructuralPartialEq for Moebius<T>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more