pub struct Perspective<S> {
pub left: S,
pub right: S,
pub bottom: S,
pub top: S,
pub near: S,
pub far: S,
}Expand description
A perspective projection with arbitrary left/right/bottom/top distances
Fields§
§left: S§right: S§bottom: S§top: S§near: S§far: STrait Implementations§
Source§impl<S: Clone> Clone for Perspective<S>
impl<S: Clone> Clone for Perspective<S>
Source§fn clone(&self) -> Perspective<S>
fn clone(&self) -> Perspective<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for Perspective<S>
impl<S: Debug> Debug for Perspective<S>
Source§impl<S: BaseFloat> From<Perspective<S>> for Matrix4<S>
impl<S: BaseFloat> From<Perspective<S>> for Matrix4<S>
Source§fn from(persp: Perspective<S>) -> Matrix4<S>
fn from(persp: Perspective<S>) -> Matrix4<S>
Converts to this type from the input type.
Source§impl<S: PartialEq> PartialEq for Perspective<S>
impl<S: PartialEq> PartialEq for Perspective<S>
impl<S: Copy> Copy for Perspective<S>
impl<S> StructuralPartialEq for Perspective<S>
Auto Trait Implementations§
impl<S> Freeze for Perspective<S>where
S: Freeze,
impl<S> RefUnwindSafe for Perspective<S>where
S: RefUnwindSafe,
impl<S> Send for Perspective<S>where
S: Send,
impl<S> Sync for Perspective<S>where
S: Sync,
impl<S> Unpin for Perspective<S>where
S: Unpin,
impl<S> UnwindSafe for Perspective<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more