Function ears::listener::get_orientation [] [src]

pub fn get_orientation() -> ([f32; 3], [f32; 3])

Get the orientation of the listener.

Return

A tuple containing the orientation as two three dimensional vector [x, y, z].

Example

let (at, up) = listener::get_orientation();
println!("At orientation: {:?}", &at);
println!("Up orientation: {:?}", &up);