Struct truck_geometry::base::cgmath::PerspectiveFov
source · pub struct PerspectiveFov<S> {
pub fovy: Rad<S>,
pub aspect: S,
pub near: S,
pub far: S,
}
Expand description
A perspective projection based on a vertical field-of-view angle.
Fields§
§fovy: Rad<S>
§aspect: S
§near: S
§far: S
Implementations§
source§impl<S> PerspectiveFov<S>where
S: BaseFloat,
impl<S> PerspectiveFov<S>where
S: BaseFloat,
pub fn to_perspective(&self) -> Perspective<S>
Trait Implementations§
source§impl<S> Clone for PerspectiveFov<S>where
S: Clone,
impl<S> Clone for PerspectiveFov<S>where
S: Clone,
source§fn clone(&self) -> PerspectiveFov<S>
fn clone(&self) -> PerspectiveFov<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 PerspectiveFov<S>where
S: Debug,
impl<S> Debug for PerspectiveFov<S>where
S: Debug,
source§impl<'de, S> Deserialize<'de> for PerspectiveFov<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for PerspectiveFov<S>where
S: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PerspectiveFov<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
source§impl<S> From<PerspectiveFov<S>> for Matrix4<S>where
S: BaseFloat,
impl<S> From<PerspectiveFov<S>> for Matrix4<S>where
S: BaseFloat,
source§fn from(persp: PerspectiveFov<S>) -> Matrix4<S>
fn from(persp: PerspectiveFov<S>) -> Matrix4<S>
Converts to this type from the input type.
source§impl<S> PartialEq for PerspectiveFov<S>where
S: PartialEq,
impl<S> PartialEq for PerspectiveFov<S>where
S: PartialEq,
source§impl<S> Serialize for PerspectiveFov<S>where
S: Serialize,
impl<S> Serialize for PerspectiveFov<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 PerspectiveFov<S>where
S: Copy,
impl<S> StructuralPartialEq for PerspectiveFov<S>
Auto Trait Implementations§
impl<S> Freeze for PerspectiveFov<S>where
S: Freeze,
impl<S> RefUnwindSafe for PerspectiveFov<S>where
S: RefUnwindSafe,
impl<S> Send for PerspectiveFov<S>where
S: Send,
impl<S> Sync for PerspectiveFov<S>where
S: Sync,
impl<S> Unpin for PerspectiveFov<S>where
S: Unpin,
impl<S> UnwindSafe for PerspectiveFov<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
)