pub enum Camera3D {
Perspective {
fov_horizontal_deg: f32,
near: f32,
far: f32,
position: [f32; 3],
target: [f32; 3],
},
Orthographic {
left: f32,
right: f32,
top: f32,
bottom: f32,
near: f32,
far: f32,
position: [f32; 3],
target: [f32; 3],
},
}Expand description
3D Camera Abstractions
Variants§
Perspective
Fields
Orthographic
Trait Implementations§
impl StructuralPartialEq for Camera3D
Auto Trait Implementations§
impl Forget for Camera3D
impl Freeze for Camera3D
impl Move for Camera3D
impl RefUnwindSafe for Camera3D
impl Send for Camera3D
impl Sync for Camera3D
impl Unpin for Camera3D
impl UnsafeUnpin for Camera3D
impl UnwindSafe for Camera3D
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