Struct gltf_json::camera::Camera[][src]

pub struct Camera {
    pub orthographic: Option<Orthographic>,
    pub perspective: Option<Perspective>,
    pub type_: Checked<Type>,
    pub extensions: Camera,
    pub extras: Extras,
}

A camera's projection.

A node can reference a camera to apply a transform to place the camera in the scene.

Fields

An orthographic camera containing properties to create an orthographic projection matrix.

A perspective camera containing properties to create a perspective projection matrix.

Specifies if the camera uses a perspective or orthographic projection.

Extension specific data.

Optional application specific data.

Trait Implementations

impl Clone for Camera
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Camera
[src]

Formats the value using the given formatter. Read more

impl Validate for Camera
[src]

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

Validates the data against the glTF 2.0 specification. Read more

impl<'a> Get<Camera> for Root
[src]

Retrieves a single value at the given index.

Auto Trait Implementations

impl Send for Camera

impl Sync for Camera