INNER CODE UNIT · C++
interpSin
camila314/gdp · Slerp2D.cpp:29
float interpSin = (sinStart * weightStart) + (sinEnd * weightEnd);
float interpCos = (cosStart * weightStart) + (cosEnd * weightEnd);
double out = atan2(interpSin, interpCos);
return out + out;
}