Struct Moebius

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

Implementations§

Source§

impl<U> Moebius<U>

Source

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

Source

pub fn a_ref(&self) -> &U

Source

pub fn b_ref(&self) -> &U

Source

pub fn c_ref(&self) -> &U

Source

pub fn d_ref(&self) -> &U

Source

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

Source

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

Source

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

Source

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

Source§

impl<U: Clone> Moebius<U>

Source

pub fn a(&self) -> U

Source

pub fn b(&self) -> U

Source

pub fn c(&self) -> U

Source

pub fn d(&self) -> U

Source§

impl<U: Neg<Output = U> + Mul<Output = U> + Div<Output = U> + Sub<Output = U> + Clone> Moebius<U>

Source

pub fn det(&self) -> U

Source

pub fn normalize(self) -> Self

Trait Implementations§

Source§

impl<U> Chain<U> for Moebius<U>
where U: Add<Output = U> + Mul<Output = U> + Div<Output = U> + Clone,

Source§

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

Source§

impl<U: Clone> Clone for Moebius<U>

Source§

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

Returns a copy 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<U: Debug> Debug for Moebius<U>

Source§

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

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

impl<T: Algebra + Clone> Deriv<Construct<T, T>> for Moebius<Complex<T>>

Source§

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

Find the derivative of self at the specified point p.
Source§

impl<T: NumCast + Algebra + Dot<Output = T> + Clone> DerivDir<Construct<T, Construct<T, T>>> for Moebius<Complex<T>>

Source§

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

Find the directinal derivative of self at the specified point p via the specified direction d.
Source§

impl<T: Float + Algebra, U: NormSqr<Output = T> + Clone> Distribution<Moebius<Construct<T, U>>> for Normalized

Source§

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

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§

impl<U> Distribution<Moebius<U>> for StandardNormal

Source§

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

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§

impl<U> From<[U; 4]> for Moebius<U>

Source§

fn from(array: [U; 4]) -> Self

Converts to this type from the input type.
Source§

impl<U: Zero + One> Identity for Moebius<U>

Source§

fn identity() -> Self

Get an identity element.
Source§

impl<U> Into<[U; 4]> for Moebius<U>

Source§

fn into(self) -> [U; 4]

Converts this type into the (usually inferred) input type.
Source§

impl<U: PartialEq> PartialEq for Moebius<U>

Source§

fn eq(&self, other: &Moebius<U>) -> 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: Algebra + Clone, U: Algebra<T> + Clone> Transform<Construct<T, Construct<T, U>>> for Moebius<Construct<T, U>>

Source§

fn apply( &self, x: Construct<T, Construct<T, U>>, ) -> Construct<T, Construct<T, U>>

Apply the transformation.
Source§

impl<U> Transform<U> for Moebius<U>
where U: Add<Output = U> + Mul<Output = U> + Div<Output = U> + Clone,

Source§

fn apply(&self, x: U) -> U

Apply the transformation.
Source§

impl<U: Copy> Copy for Moebius<U>

Source§

impl<U> StructuralPartialEq for Moebius<U>

Auto Trait Implementations§

§

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

§

impl<U> RefUnwindSafe for Moebius<U>
where U: RefUnwindSafe,

§

impl<U> Send for Moebius<U>
where U: Send,

§

impl<U> Sync for Moebius<U>
where U: Sync,

§

impl<U> Unpin for Moebius<U>
where U: Unpin,

§

impl<U> UnwindSafe for Moebius<U>
where U: 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> 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<U, M> DerivDir<U> for M
where U: Mul<Output = U>, M: Deriv<U>,

Source§

fn deriv_dir(&self, p: U, d: U) -> U

Find the directinal derivative of self at the specified point p via the specified direction d.
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