Struct trackball::Scene [−][src]
Scene wrt enclosing viewing frustum.
Implements Default
and can be created with Scene::default()
.
Implementations
impl<N: RealField> Scene<N>
[src]
pub fn fov(&self) -> N
[src]
Field of view y-axis.
Angle in yz-plane. Default is [RealField::frac_pi_4()
].
pub fn set_fov(&mut self, fov: N)
[src]
Sets field of view y-axis.
Angle in yz-plane. Default is [RealField::frac_pi_4()
].
pub fn clip_planes(&self, zat: N) -> (N, N)
[src]
Clip plane distances from eye regardless of Self::scale()
.
Defaults to (1e-1, 1e+6)
measured from eye.
pub fn set_clip_planes(&mut self, znear: N, zfar: N)
[src]
Sets clip plane distances from target or eye whether Self::scale()
.
Defaults to (1e-1, 1e+6)
measured from eye.
pub fn scale(&self) -> bool
[src]
Object inspection mode.
Scales clip plane distances by measuring from target instead of eye. Default is false
.
pub fn set_scale(&mut self, oim: bool)
[src]
Sets object inspection mode.
Scales clip plane distances by measuring from target instead of eye. Default is false
.
pub fn ortho(&self) -> bool
[src]
Orthographic projection mode.
Computes scale-identical orthographic instead of perspective projection. Default is false
.
pub fn set_ortho(&mut self, opm: bool)
[src]
Sets orthographic projection mode.
Computes scale-identical orthographic instead of perspective projection. Default is false
.
pub fn projection(&self, zat: N, max: &Point2<N>) -> (Matrix4<N>, N)
[src]
Projection transformation and unit per pixel on focus plane.
Trait Implementations
impl<N: Clone + RealField> Clone for Scene<N>
[src]
impl<N: Debug + RealField> Debug for Scene<N>
[src]
impl<N: RealField> Default for Scene<N>
[src]
impl<N: Eq + RealField> Eq for Scene<N>
[src]
impl<N: PartialEq + RealField> PartialEq<Scene<N>> for Scene<N>
[src]
impl<N: RealField> StructuralEq for Scene<N>
[src]
impl<N: RealField> StructuralPartialEq for Scene<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Scene<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Scene<N>
impl<N> Sync for Scene<N>
impl<N> Unpin for Scene<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Scene<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<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<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>,