Struct ccgeom::Hyperbolic3[][src]

pub struct Hyperbolic3<T: Scalar = f64> { /* fields omitted */ }

Implementations

impl<T: Scalar> Hyperbolic3<T>[src]

pub fn horosphere(pos: Complex<T>) -> Moebius<Complex<T>>[src]

Moves to the specified position at the horosphere.

Trait Implementations

impl<T: Clone + Scalar> Clone for Hyperbolic3<T>[src]

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

type Pos = Quaternion<T>

type Dir = Quaternion<T>

type Map = Moebius<Complex<T>>

fn origin() -> Self::Pos[src]

Point of origin.

fn default_dir() -> Self::Dir[src]

Default direction at the point of origin.

fn length(a: Self::Pos) -> T[src]

fn distance(a: Self::Pos, b: Self::Pos) -> T[src]

impl<T: Scalar> Geometry3<T> for Hyperbolic3<T>[src]

fn dir_when_moved_at_pos(
    src_pos: Self::Pos,
    src_dir: Self::Dir,
    dst_pos: Self::Pos
) -> Self::Dir
[src]

Returns the direction of the line at point dst_pos when we know that the line at the point src_pos has direction of src_dir.

fn dir_to_local(_pos: Self::Pos, dir: Self::Dir) -> <Eu3<T> as Geometry<T>>::Dir[src]

fn dir_from_local(
    _pos: Self::Pos,
    dir: <Eu3<T> as Geometry<T>>::Dir
) -> Self::Dir
[src]

fn shift_x(dist: T) -> Self::Map[src]

fn shift_y(dist: T) -> Self::Map[src]

fn shift_z(dist: T) -> Self::Map[src]

fn rotate_x(angle: T) -> Self::Map[src]

fn rotate_y(angle: T) -> Self::Map[src]

fn rotate_z(angle: T) -> Self::Map[src]

fn look_at_pos(pos: Self::Pos) -> Self::Map[src]

Rotatates default_dir around the origin to make it point to pos.

fn look_at_dir(dir: Self::Dir) -> Self::Map[src]

Turns default_dir into dir.

fn move_at_pos(pos: Self::Pos) -> Self::Map[src]

Returns maping that translates origin to pos preserving orientation relatively to the line that connects the origin to pos. Read more

fn move_at_dir(dir: Self::Dir, dist: T) -> Self::Map[src]

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for Hyperbolic3<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