Struct gltf::camera::Perspective
source · pub struct Perspective<'a> { /* private fields */ }
Expand description
Values for a perspective camera projection.
Implementations§
source§impl<'a> Perspective<'a>
impl<'a> Perspective<'a>
sourcepub fn aspect_ratio(&self) -> Option<f32>
pub fn aspect_ratio(&self) -> Option<f32>
Aspect ratio of the field of view.
sourcepub fn extensions(&self) -> Option<&Map<String, Value>>
pub fn extensions(&self) -> Option<&Map<String, Value>>
Returns extension data unknown to this crate version.
sourcepub fn extension_value(&self, ext_name: &str) -> Option<&Value>
pub fn extension_value(&self, ext_name: &str) -> Option<&Value>
Queries extension data unknown to this crate version.
Trait Implementations§
source§impl<'a> Clone for Perspective<'a>
impl<'a> Clone for Perspective<'a>
source§fn clone(&self) -> Perspective<'a>
fn clone(&self) -> Perspective<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for Perspective<'a>
impl<'a> Send for Perspective<'a>
impl<'a> Sync for Perspective<'a>
impl<'a> Unpin for Perspective<'a>
impl<'a> UnwindSafe for Perspective<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more