Struct 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: BaseFloat> PerspectiveFov<S>
impl<S: BaseFloat> PerspectiveFov<S>
pub fn to_perspective(&self) -> Perspective<S>
Trait Implementations§
source§impl<S: Clone> Clone for PerspectiveFov<S>
impl<S: Clone> Clone for PerspectiveFov<S>
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> Debug for PerspectiveFov<S>
impl<S: Debug> Debug for PerspectiveFov<S>
source§impl<S: Decodable> Decodable for PerspectiveFov<S>
impl<S: Decodable> Decodable for PerspectiveFov<S>
source§impl<S: Encodable> Encodable for PerspectiveFov<S>
impl<S: Encodable> Encodable for PerspectiveFov<S>
source§impl<S: BaseFloat> From<PerspectiveFov<S>> for Matrix4<S>
impl<S: BaseFloat> From<PerspectiveFov<S>> for Matrix4<S>
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> PartialEq<PerspectiveFov<S>> for PerspectiveFov<S>
impl<S: PartialEq> PartialEq<PerspectiveFov<S>> for PerspectiveFov<S>
source§fn eq(&self, other: &PerspectiveFov<S>) -> bool
fn eq(&self, other: &PerspectiveFov<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<S: Copy> Copy for PerspectiveFov<S>
impl<S> StructuralPartialEq for PerspectiveFov<S>
Auto Trait Implementations§
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