Enum kiss3d_trackball::Fixed[][src]

pub enum Fixed<N> where
    N: RealField, 
{ Hor(N), Ver(N), Upp(N), }

Fixed quantity wrt field of view.

  • Implements Default and can be created with Fixed::default() returning Fixed::Ver(N::frac_pi_4()).
  • Implements From<N> and can be created with N::into() returning Fixed::Ver().

Variants

Hor(N)

Fixed horizontal field of view aka Vert- scaling.

Ver(N)

Fixed vertical field of view aka Hor+ scaling.

Upp(N)

Fixed unit per pixel on focus plane at distance from eye of one aka Pixel-based scaling.

Implementations

impl<N> Fixed<N> where
    N: RealField, 
[src]

pub fn to_hor(self, max: &Point<N, 2_usize>) -> Fixed<N>[src]

Converts to fixed horizontal field of view wrt maximum position in screen space.

pub fn to_ver(self, max: &Point<N, 2_usize>) -> Fixed<N>[src]

Converts to fixed vertical field of view wrt maximum position in screen space.

pub fn to_upp(self, max: &Point<N, 2_usize>) -> Fixed<N>[src]

Converts to fixed unit per pixel on focus plane at distance from eye of one wrt maximum position in screen space.

pub fn max_and_upp(
    &self,
    zat: N,
    max: &Point<N, 2_usize>
) -> (Point<N, 2_usize>, N)
[src]

Maximum position in camera space and unit per pixel on focus plane wrt distance between eye and target and maximum position in screen space.

pub fn into_inner(self) -> N[src]

Underlying quantity.

Trait Implementations

impl<N> Clone for Fixed<N> where
    N: Clone + RealField, 
[src]

impl<N> Copy for Fixed<N> where
    N: Copy + RealField, 
[src]

impl<N> Debug for Fixed<N> where
    N: Debug + RealField, 
[src]

impl<N> Default for Fixed<N> where
    N: RealField, 
[src]

impl<N> Eq for Fixed<N> where
    N: Eq + RealField, 
[src]

impl<N> From<N> for Fixed<N> where
    N: RealField, 
[src]

impl<N> PartialEq<Fixed<N>> for Fixed<N> where
    N: PartialEq<N> + RealField, 
[src]

impl<N> StructuralEq for Fixed<N> where
    N: RealField, 
[src]

impl<N> StructuralPartialEq for Fixed<N> where
    N: RealField, 
[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for Fixed<N> where
    N: RefUnwindSafe

impl<N> Send for Fixed<N>

impl<N> Sync for Fixed<N>

impl<N> Unpin for Fixed<N> where
    N: Unpin

impl<N> UnwindSafe for Fixed<N> where
    N: UnwindSafe

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.