Function steam_audio::ffi::iplCalculateRelativeDirection
[−]
[src]
pub unsafe extern "C" fn iplCalculateRelativeDirection(
sourcePosition: IPLVector3,
listenerPosition: IPLVector3,
listenerAhead: IPLVector3,
listenerUp: IPLVector3
) -> IPLVector3
Calculates the relative direction from the listener to a sound source. The returned direction vector is expressed in the listener's coordinate system.
\param sourcePosition World-space coordinates of the source. \param listenerPosition World-space coordinates of the listener. \param listenerAhead World-space unit-length vector pointing ahead relative to the listener. \param listenerUp World-space unit-length vector pointing up relative to the listener.
\return A unit-length vector in the listener's coordinate space, pointing from the listener to the source.