pub struct Listener {
pub position: [f32; 3],
pub velocity: [f32; 3],
pub forward: [f32; 3],
pub up: [f32; 3],
}Expand description
Listener pose. Orientation axes need not be unit or exactly perpendicular; preparation orthonormalizes them. Zero/near-parallel axes are rejected.
Fields§
§position: [f32; 3]§velocity: [f32; 3]§forward: [f32; 3]§up: [f32; 3]Implementations§
Trait Implementations§
impl Copy for Listener
impl StructuralPartialEq for Listener
Auto Trait Implementations§
impl Freeze for Listener
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnsafeUnpin for Listener
impl UnwindSafe for Listener
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