Struct gltf_json::camera::Perspective
[−]
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
fn clone(&self) -> Perspective
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for Perspective
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),
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates the data against the glTF 2.0 specification.
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates only the invariants required for the library to function safely.