pub struct Camera {
pub transform: Matrix4<f32>,
pub projection: Projection,
pub zfar: f32,
pub znear: f32,
}Expand description
Contains camera properties.
Fields§
§transform: Matrix4<f32>Transform matrix (also called world to camera matrix)
projection: ProjectionProjection type and specific parameters
zfar: f32The distance to the far clipping plane.
For perspective projection, this may be infinite.
znear: f32The distance to the near clipping plane.
Implementations§
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