Struct cgmath::Perspective
source · 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: S
Trait 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 copy 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<Perspective<S>> for Perspective<S>
impl<S: PartialEq> PartialEq<Perspective<S>> for Perspective<S>
source§fn eq(&self, other: &Perspective<S>) -> bool
fn eq(&self, other: &Perspective<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<S: Copy> Copy for Perspective<S>
impl<S> StructuralPartialEq for Perspective<S>
Auto Trait Implementations§
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