Enum trackball::Fixed [−][src]
pub enum Fixed<N: Copy + RealField> {
Hor(N),
Ver(N),
Upp(N),
}
Expand description
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
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
Converts to fixed horizontal field of view wrt maximum position in screen space.
Converts to fixed vertical field of view wrt maximum position in screen space.
Converts to fixed unit per pixel on focus plane at distance from eye of one wrt maximum position in screen space.
Maximum position in camera space and unit per pixel on focus plane wrt distance between eye and target and maximum position in screen space.
Underlying quantity.
Trait Implementations
Auto Trait Implementations
impl<N> RefUnwindSafe for Fixed<N> where
N: RefUnwindSafe,
impl<N> UnwindSafe for Fixed<N> where
N: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
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.