Enum trackball::Fixed [−][src]
Fixed quantity wrt field of view.
- Implements
Default
and can be created withFixed::default()
returningFixed::Ver(N::frac_pi_4())
. - Implements
From<N>
and can be created withN::into()
returningFixed::Ver()
.
Variants
Fixed horizontal field of view aka Vert- scaling.
Fixed vertical field of view aka Hor+ scaling.
Fixed unit per pixel on focus plane at distance from eye of one aka Pixel-based scaling.
Implementations
impl<N: RealField> Fixed<N>
[src]
pub fn to_hor(&self, max: &Point2<N>) -> Self
[src]
Converts to fixed horizontal field of view wrt maximum position in screen space.
pub fn to_ver(&self, max: &Point2<N>) -> Self
[src]
Converts to fixed vertical field of view wrt maximum position in screen space.
pub fn to_upp(&self, max: &Point2<N>) -> Self
[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: &Point2<N>) -> (Point2<N>, 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 + RealField> Clone for Fixed<N>
[src]
impl<N: Copy + RealField> Copy for Fixed<N>
[src]
impl<N: Debug + RealField> Debug for Fixed<N>
[src]
impl<N: RealField> Default for Fixed<N>
[src]
impl<N: Eq + RealField> Eq for Fixed<N>
[src]
impl<N: RealField> From<N> for Fixed<N>
[src]
impl<N: PartialEq + RealField> PartialEq<Fixed<N>> for Fixed<N>
[src]
impl<N: RealField> StructuralEq for Fixed<N>
[src]
impl<N: RealField> StructuralPartialEq for Fixed<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Fixed<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Fixed<N>
impl<N> Sync for Fixed<N>
impl<N> Unpin for Fixed<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Fixed<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
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]
T: Copy + PartialEq<T> + Debug + Any,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,