INNER CODE UNIT · C++

weightEnd

camila314/gdp · Slerp2D.cpp:23

        weightEnd   = sinf(theta * t) / sinTheta;
    } else {
        weightStart = 1.f - t;
        weightEnd   = t;
    }

    float interpSin = (sinStart * weightStart) + (sinEnd * weightEnd);
    float interpCos = (cosStart * weightStart) + (cosEnd * weightEnd);

    double out = atan2(interpSin, interpCos);
    return out + out;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…