function dAngle(da:Number):Number { while (da < 0) { da = 360 + da; } while (da > 360) { da = da - 360; } // return da; }
da % 360