pub struct Camera<'a> { /* private fields */ }
Expand description
A camera’s projection. A node can reference a camera to apply a transform to place the camera in the scene.
Implementations§
source§impl<'a> Camera<'a>
impl<'a> Camera<'a>
sourcepub fn projection(&self) -> Projection<'_>
pub fn projection(&self) -> Projection<'_>
Returns the camera’s projection.
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§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Camera<'a>
impl<'a> Send for Camera<'a>
impl<'a> Sync for Camera<'a>
impl<'a> Unpin for Camera<'a>
impl<'a> UnwindSafe for Camera<'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