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 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> Fixed<N> where
N: RealField,
[src]
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]
&self,
zat: N,
max: &Point<N, 2_usize>
) -> (Point<N, 2_usize>, N)
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> StructuralEq for Fixed<N> where
N: RealField,
[src]
impl<N> StructuralEq for Fixed<N> where
N: RealField,
[src]impl<N> StructuralPartialEq 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> RefUnwindSafe for Fixed<N> where
N: RefUnwindSafe,
impl<N> UnwindSafe for Fixed<N> where
N: UnwindSafe,
impl<N> UnwindSafe for Fixed<N> where
N: UnwindSafe,
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Same<T> for T
impl<T> Same<T> for 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>,