pub struct Camera { /* private fields */ }Implementations§
Source§impl Camera
impl Camera
pub fn new(extent: Vector2<f32>, near: f32, far: f32) -> Self
pub fn min(&self) -> Point2<f32>
pub fn set_min(&mut self, min: Point2<f32>)
pub fn centre(&self) -> Point2<f32>
pub fn max(&self) -> Point2<f32>
pub fn extent(&self) -> Vector2<f32>
pub fn near(&self) -> f32
pub fn far(&self) -> f32
pub fn centre_on(&mut self, centre: Point2<f32>)
pub fn set_extent(&mut self, extent: Vector2<f32>)
pub fn view_projection_matrix(&self) -> Matrix4<f32>
pub fn projection_matrix(&self) -> Matrix4<f32>
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 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