pub struct ListenerInfo {
pub position: Vector3<f32>,
pub orientation: Quaternion<f32>,
pub previous_position: Vector3<f32>,
pub previous_orientation: Quaternion<f32>,
}Expand description
Information about a listener.
Fields§
§position: Vector3<f32>The position of the listener.
orientation: Quaternion<f32>The rotation of the listener.
previous_position: Vector3<f32>The position of the listener prior to the last update.
previous_orientation: Quaternion<f32>The rotation of the listener prior to the last update.
Implementations§
Source§impl ListenerInfo
impl ListenerInfo
Sourcepub fn interpolated_position(self, amount: f32) -> Vector3<f32>
pub fn interpolated_position(self, amount: f32) -> Vector3<f32>
Returns the interpolated position between the previous and current position of the listener.
Sourcepub fn interpolated_orientation(self, amount: f32) -> Quaternion<f32>
pub fn interpolated_orientation(self, amount: f32) -> Quaternion<f32>
Returns the interpolated orientation between the previous and current orientation of the listener.
Trait Implementations§
Source§impl Clone for ListenerInfo
impl Clone for ListenerInfo
Source§fn clone(&self) -> ListenerInfo
fn clone(&self) -> ListenerInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListenerInfo
impl Debug for ListenerInfo
Source§impl PartialEq for ListenerInfo
impl PartialEq for ListenerInfo
impl Copy for ListenerInfo
impl StructuralPartialEq for ListenerInfo
Auto Trait Implementations§
impl Freeze for ListenerInfo
impl RefUnwindSafe for ListenerInfo
impl Send for ListenerInfo
impl Sync for ListenerInfo
impl Unpin for ListenerInfo
impl UnsafeUnpin for ListenerInfo
impl UnwindSafe for ListenerInfo
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