Lines Matching refs:azimuth
97 int HRTFPanner::calculateDesiredAzimuthIndexAndBlend(double azimuth, double& azimuthBlend)
99 // Convert the azimuth angle from the range -180 -> +180 into the range 0 -> 360.
100 // The azimuth index may then be calculated from this positive value.
101 if (azimuth < 0)
102 azimuth += 360.0;
110 // Calculate the azimuth index and the blend (0 -> 1) for interpolation.
111 double desiredAzimuthIndexFloat = azimuth / angleBetweenAzimuths;
115 // We don't immediately start using this azimuth index, but instead approach this index from the last index we rendered at.
145 // IRCAM HRTF azimuths values from the loaded database is reversed from the panner's notion of azimuth.
146 double azimuth = -desiredAzimuth;
148 bool isAzimuthGood = azimuth >= -180.0 && azimuth <= 180.0;
167 int desiredAzimuthIndex = calculateDesiredAzimuthIndexAndBlend(azimuth, azimuthBlend);
169 // Initially snap azimuth and elevation values to first values encountered.
184 // Check for azimuth and elevation changes, initiating a cross-fade if needed.