pub struct View<P = Perspective> {
pub eye: [f32; 3],
pub look: [f32; 3],
pub proj: P,
}
Expand description
The camera view.
Fields
eye: [f32; 3]
Eye 3d point.
look: [f32; 3]
Look at 3d point.
proj: P
Camera projection.
Can be a Perspective
or Orthographic
.
Trait Implementations
impl<P: Copy> Copy for View<P>
Auto Trait Implementations
impl<P> RefUnwindSafe for View<P>where
P: RefUnwindSafe,
impl<P> Send for View<P>where
P: Send,
impl<P> Sync for View<P>where
P: Sync,
impl<P> Unpin for View<P>where
P: Unpin,
impl<P> UnwindSafe for View<P>where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more