pub struct Eye {
pub position: [f32; 3],
pub right: [f32; 3],
pub up: [f32; 3],
pub forward: [f32; 3],
pub fov_y: f32,
pub aspect: f32,
pub near: f32,
pub far: f32,
}Expand description
An orthonormal frame in an image space; there is no Mat4 in the view contract.
Fields§
§position: [f32; 3]§right: [f32; 3]§up: [f32; 3]§forward: [f32; 3]§fov_y: f32§aspect: f32§near: f32§far: f32Implementations§
Trait Implementations§
impl Copy for Eye
impl StructuralPartialEq for Eye
Auto Trait Implementations§
impl Freeze for Eye
impl RefUnwindSafe for Eye
impl Send for Eye
impl Sync for Eye
impl Unpin for Eye
impl UnsafeUnpin for Eye
impl UnwindSafe for Eye
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