Struct truck_geometry::base::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 for Perspective<S>where
S: Clone,
impl<S> Clone for Perspective<S>where
S: Clone,
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 for Perspective<S>where
S: Debug,
impl<S> Debug for Perspective<S>where
S: Debug,
source§impl<'de, S> Deserialize<'de> for Perspective<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Perspective<S>where
S: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Perspective<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Perspective<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<S> From<Perspective<S>> for Matrix4<S>where
S: BaseFloat,
impl<S> From<Perspective<S>> for Matrix4<S>where
S: BaseFloat,
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 for Perspective<S>where
S: PartialEq,
impl<S> PartialEq for Perspective<S>where
S: PartialEq,
source§impl<S> Serialize for Perspective<S>where
S: Serialize,
impl<S> Serialize for Perspective<S>where
S: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<S> Copy for Perspective<S>where
S: Copy,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)