Enum trackball::Fixed [−][src]
pub enum Fixed<N: RealField> { Hor(N), Ver(N), Upp(N), }
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]
impl<N: RealField> Fixed<N>
[src]pub fn to_hor(self, max: &Point2<N>) -> Self
[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]
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]
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]
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]
pub fn into_inner(self) -> N
[src]Underlying quantity.
Trait Implementations
impl<N: Copy + RealField> Copy for Fixed<N>
[src]
impl<N: Eq + RealField> Eq 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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