pub struct Camera(pub OwnedObject);Tuple Fields§
§0: OwnedObjectImplementations§
Source§impl Camera
impl Camera
pub fn inner(&self) -> &OwnedObject
pub fn into_inner(self) -> OwnedObject
Sourcepub fn properties(&self) -> &HashMap<String, Property>
pub fn properties(&self) -> &HashMap<String, Property>
Temporary bridge to Assimp-style camera properties until typed accessors are added.
pub fn property(&self, name: &str) -> Option<&Property>
pub fn position(&self) -> [f32; 3]
pub fn up_vector(&self) -> [f32; 3]
pub fn interest_position(&self) -> [f32; 3]
pub fn aspect_width(&self) -> f32
pub fn aspect_height(&self) -> f32
pub fn film_width(&self) -> f32
pub fn film_height(&self) -> f32
pub fn near_plane(&self) -> f32
pub fn far_plane(&self) -> f32
pub fn film_aspect_ratio(&self) -> f32
pub fn aperture_mode(&self) -> i32
pub fn field_of_view(&self) -> f32
pub fn focal_length(&self) -> f32
Trait Implementations§
Source§impl TryFrom<OwnedObject> for Camera
impl TryFrom<OwnedObject> for Camera
Source§type Error = FbxTypeMismatch
type Error = FbxTypeMismatch
The type returned in the event of a conversion error.
impl StructuralPartialEq for Camera
Auto Trait Implementations§
impl Freeze for Camera
impl RefUnwindSafe for Camera
impl Send for Camera
impl Sync for Camera
impl Unpin for Camera
impl UnsafeUnpin for Camera
impl UnwindSafe for Camera
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