Struct nannou::math::PerspectiveFov [−][src]
pub struct PerspectiveFov<S> { pub fovy: Rad<S>, pub aspect: S, pub near: S, pub far: S, }
A perspective projection based on a vertical field-of-view angle.
Fields
fovy: Rad<S>
aspect: S
near: S
far: S
Methods
impl<S> PerspectiveFov<S> where
S: BaseFloat,
[src]
impl<S> PerspectiveFov<S> where
S: BaseFloat,
pub fn to_perspective(&self) -> Perspective<S>
[src]
pub fn to_perspective(&self) -> Perspective<S>
Trait Implementations
impl<S> Clone for PerspectiveFov<S> where
S: Clone,
[src]
impl<S> Clone for PerspectiveFov<S> where
S: Clone,
fn clone(&self) -> PerspectiveFov<S>
[src]
fn clone(&self) -> PerspectiveFov<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S> Debug for PerspectiveFov<S> where
S: Debug,
[src]
impl<S> Debug for PerspectiveFov<S> where
S: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'de, S> Deserialize<'de> for PerspectiveFov<S> where
S: Deserialize<'de>,
[src]
impl<'de, S> Deserialize<'de> for PerspectiveFov<S> where
S: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PerspectiveFov<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<PerspectiveFov<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<S> From<PerspectiveFov<S>> for Matrix4<S> where
S: BaseFloat,
[src]
impl<S> From<PerspectiveFov<S>> for Matrix4<S> where
S: BaseFloat,
fn from(persp: PerspectiveFov<S>) -> Matrix4<S>
[src]
fn from(persp: PerspectiveFov<S>) -> Matrix4<S>
Performs the conversion.
impl<S> Serialize for PerspectiveFov<S> where
S: Serialize,
[src]
impl<S> Serialize for PerspectiveFov<S> where
S: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
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 PerspectiveFov<S> where
S: Copy,
[src]
impl<S> Copy for PerspectiveFov<S> where
S: Copy,
impl<S> PartialEq<PerspectiveFov<S>> for PerspectiveFov<S> where
S: PartialEq<S>,
[src]
impl<S> PartialEq<PerspectiveFov<S>> for PerspectiveFov<S> where
S: PartialEq<S>,
fn eq(&self, other: &PerspectiveFov<S>) -> bool
[src]
fn eq(&self, other: &PerspectiveFov<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PerspectiveFov<S>) -> bool
[src]
fn ne(&self, other: &PerspectiveFov<S>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<S> Send for PerspectiveFov<S> where
S: Send,
impl<S> Send for PerspectiveFov<S> where
S: Send,
impl<S> Sync for PerspectiveFov<S> where
S: Sync,
impl<S> Sync for PerspectiveFov<S> where
S: Sync,