#[repr(C)]pub struct Attributes3D {
pub position: Vector,
pub velocity: Vector,
pub forward: Vector,
pub up: Vector,
}
Expand description
Structure describing a position, velocity and orientation.
Fields§
§position: Vector
Position in world space used for panning and attenuation.
velocity: Vector
Velocity in world space used for doppler.
forward: Vector
Forwards orientation, must be of unit length (1.0) and perpendicular to up.
up: Vector
Upwards orientation, must be of unit length (1.0) and perpendicular to forward.
Trait Implementations§
Source§impl Clone for Attributes3D
impl Clone for Attributes3D
Source§fn clone(&self) -> Attributes3D
fn clone(&self) -> Attributes3D
Returns a copy 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 Attributes3D
impl Debug for Attributes3D
Source§impl Default for Attributes3D
impl Default for Attributes3D
Source§fn default() -> Attributes3D
fn default() -> Attributes3D
Returns the “default value” for a type. Read more
Source§impl From<Attributes3D> for FMOD_3D_ATTRIBUTES
impl From<Attributes3D> for FMOD_3D_ATTRIBUTES
Source§fn from(value: Attributes3D) -> Self
fn from(value: Attributes3D) -> Self
Converts to this type from the input type.
Source§impl From<FMOD_3D_ATTRIBUTES> for Attributes3D
impl From<FMOD_3D_ATTRIBUTES> for Attributes3D
Source§fn from(value: FMOD_3D_ATTRIBUTES) -> Self
fn from(value: FMOD_3D_ATTRIBUTES) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Attributes3D
impl PartialEq for Attributes3D
Source§impl PartialOrd for Attributes3D
impl PartialOrd for Attributes3D
impl Copy for Attributes3D
impl StructuralPartialEq for Attributes3D
Auto Trait Implementations§
impl Freeze for Attributes3D
impl RefUnwindSafe for Attributes3D
impl Send for Attributes3D
impl Sync for Attributes3D
impl Unpin for Attributes3D
impl UnwindSafe for Attributes3D
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