pub struct Camera { /* private fields */ }
Implementations§
Source§impl Camera
impl Camera
Sourcepub fn up(&mut self) -> &mut Up
pub fn up(&mut self) -> &mut Up
Sets the (x,y,z) components of the ‘up’ camera vector. This vector determines the up direction of this scene with respect to the page. The default is {x: 0, y: 0, z: 1} which means that the z axis points up.
Sourcepub fn center(&mut self) -> &mut Center
pub fn center(&mut self) -> &mut Center
Sets the (x,y,z) components of the ‘center’ camera vector This vector determines the translation (x,y,z) space about the center of this scene. By default, there is no such translation.
Sourcepub fn eye(&mut self) -> &mut Eye
pub fn eye(&mut self) -> &mut Eye
Sets the (x,y,z) components of the ‘eye’ camera vector. This vector determines the view point about the origin of this scene.
pub fn projection(&mut self) -> &mut Projection
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Camera
impl RefUnwindSafe for Camera
impl Send for Camera
impl Sync for Camera
impl Unpin 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