Struct dae_parser::Perspective
source · [−]pub struct Perspective {
pub xfov: Option<f32>,
pub yfov: Option<f32>,
pub aspect_ratio: Option<f32>,
pub znear: f32,
pub zfar: f32,
}
Expand description
Describes the field of view of a perspective camera.
Fields
xfov: Option<f32>
The horizontal field of view in degrees.
yfov: Option<f32>
The vertical field of view in degrees.
aspect_ratio: Option<f32>
The aspect ratio of the field of view.
znear: f32
The distance to the near clipping plane.
zfar: f32
The distance to the far clipping plane.
Implementations
Trait Implementations
sourceimpl Clone for Perspective
impl Clone for Perspective
sourcefn clone(&self) -> Perspective
fn clone(&self) -> Perspective
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Perspective
impl Debug for Perspective
impl Copy for Perspective
Auto Trait Implementations
impl RefUnwindSafe for Perspective
impl Send for Perspective
impl Sync for Perspective
impl Unpin for Perspective
impl UnwindSafe for Perspective
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more