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>>
Available on crate feature extensions only.
pub fn extensions(&self) -> Option<&Map<String, Value>>
extensions only.Returns extension data unknown to this crate version.
Sourcepub fn extension_value(&self, ext_name: &str) -> Option<&Value>
Available on crate feature extensions only.
pub fn extension_value(&self, ext_name: &str) -> Option<&Value>
extensions only.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 duplicate 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> Freeze for Perspective<'a>
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