pub struct Camera {
pub position: [f32; 3],
pub right: [f32; 3],
pub down: [f32; 3],
pub forward: [f32; 3],
pub fov_y_rad: f32,
}Expand description
World-space camera state in the voxlap convention (Z = down).
right, down, forward form a right-handed orthonormal basis;
position is in voxel-world units. fov_y_rad is the vertical
field-of-view in radians — voxlap’s default is roughly 60°
(std::f32::consts::FRAC_PI_3).
Fields§
§position: [f32; 3]§right: [f32; 3]§down: [f32; 3]§forward: [f32; 3]§fov_y_rad: f32Trait 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