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 of the field of view.

The vertical field of view in radians.

The distance to the far clipping plane.

The distance to the near clipping plane.

Extension specific data.

Optional application specific data.

Trait Implementations

impl Clone for Perspective

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Perspective

Formats the value using the given formatter.

impl Validate for Perspective

Validates the data against the glTF 2.0 specification.

Validates only the invariants required for the library to function safely.