Struct truck_modeling::base::cgmath::Perspective
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§
§impl<S> Clone for Perspective<S>where
S: Clone,
impl<S> Clone for Perspective<S>where
S: Clone,
§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 more§impl<S> Debug for Perspective<S>where
S: Debug,
impl<S> Debug for Perspective<S>where
S: Debug,
§impl<'de, S> Deserialize<'de> for Perspective<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Perspective<S>where
S: Deserialize<'de>,
§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
§impl<S> From<Perspective<S>> for Matrix4<S>where
S: BaseFloat,
impl<S> From<Perspective<S>> for Matrix4<S>where
S: BaseFloat,
§fn from(persp: Perspective<S>) -> Matrix4<S>
fn from(persp: Perspective<S>) -> Matrix4<S>
Converts to this type from the input type.
§impl<S> PartialEq<Perspective<S>> for Perspective<S>where
S: PartialEq<S>,
impl<S> PartialEq<Perspective<S>> for Perspective<S>where
S: PartialEq<S>,
§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> Serialize for Perspective<S>where
S: Serialize,
impl<S> Serialize for Perspective<S>where
S: Serialize,
§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