computint rotation in flatplanet doubledrag