MSVC compilation fix (by DeathDisciple); proper computation of pivots;
proper handling of angle tweening spins