Struct cgmath::PerspectiveFov [] [src]

pub struct PerspectiveFov<S, A> {
    pub fovy: A,
    pub aspect: S,
    pub near: S,
    pub far: S,
}

A perspective projection based on a vertical field-of-view angle.

Fields

fovy
aspect
near
far

Methods

impl<S: BaseFloat, A: Angle<S>> PerspectiveFov<S, A>

fn to_perspective(&self) -> Perspective<S>

Trait Implementations

impl<S: BaseFloat + 'static, A: Angle<S>> Projection<S> for PerspectiveFov<S, A>

fn to_frustum(&self) -> Frustum<S>

Derived Implementations

impl<S: Decodable, A: Decodable> Decodable for PerspectiveFov<S, A>

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PerspectiveFov<S, A>, __D::Error>

impl<S: Encodable, A: Encodable> Encodable for PerspectiveFov<S, A>

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<S: PartialEq, A: PartialEq> PartialEq for PerspectiveFov<S, A>

fn eq(&self, __arg_0: &PerspectiveFov<S, A>) -> bool

fn ne(&self, __arg_0: &PerspectiveFov<S, A>) -> bool

impl<S: Clone, A: Clone> Clone for PerspectiveFov<S, A>

fn clone(&self) -> PerspectiveFov<S, A>

fn clone_from(&mut self, source: &Self)

impl<S: Copy, A: Copy> Copy for PerspectiveFov<S, A>