Struct gltf::camera::Camera
[−]
[src]
pub struct Camera<'a> { /* fields omitted */ }
A camera's projection. A node can reference a camera to apply a transform to place the camera in the scene.
Methods
impl<'a> Camera<'a>
[src]
fn new(gltf: &'a Gltf, index: usize, json: &'a Camera) -> Self
Constructs a Camera
.
fn index(&self) -> usize
Returns the internal JSON index.
fn as_json(&self) -> &Camera
Returns the internal JSON item.
fn projection(&self) -> Projection
Returns the camera's projection.
fn extensions(&self) -> Camera<'a>
Extension specific data.
fn extras(&self) -> &Extras
Optional application specific data.
Trait Implementations
impl<'a> Clone for Camera<'a>
[src]
fn clone(&self) -> Camera<'a>
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