Struct mumble_link::Position
source · #[repr(C)]pub struct Position {
pub position: [f32; 3],
pub front: [f32; 3],
pub top: [f32; 3],
}
Expand description
A position in three-dimensional space.
The vectors are in a left-handed coordinate system: X positive towards “right”, Y positive towards “up”, and Z positive towards “front”. One unit is treated as one meter by the sound engine.
front
and top
should be unit vectors and perpendicular to each other.
Fields§
§position: [f32; 3]
The character’s position in space.
front: [f32; 3]
A unit vector pointing out of the character’s eyes.
top: [f32; 3]
A unit vector pointing out of the top of the character’s head.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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