Struct gltf_json::camera::Perspective [−][src]
pub struct Perspective { pub aspect_ratio: Option<f32>, pub yfov: f32, pub zfar: Option<f32>, pub znear: f32, pub extensions: Perspective, pub extras: Extras, }
Values for a perspective camera.
Fields
aspect_ratio: Option<f32>
Aspect ratio of the field of view.
yfov: f32
The vertical field of view in radians.
zfar: Option<f32>
The distance to the far clipping plane.
znear: f32
The distance to the near clipping plane.
extensions: Perspective
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations
impl Clone for Perspective
[src]
impl Clone for Perspective
fn clone(&self) -> Perspective
[src]
fn clone(&self) -> Perspective
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 Debug for Perspective
[src]
impl Debug for Perspective
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Validate for Perspective
[src]
impl Validate for Perspective
fn validate_completely<P, R>(&self, root: &Root, path: P, report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
[src]
fn validate_completely<P, R>(&self, root: &Root, path: P, report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates the data against the glTF 2.0 specification. Read more
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
[src]
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates only the invariants required for the library to function safely.
Auto Trait Implementations
impl Send for Perspective
impl Send for Perspective
impl Sync for Perspective
impl Sync for Perspective