void Rotate(const Angle alpha) { const auto sc = alpha.SinCos(); const fixed sin = sc.first, cos = sc.second; #ifdef FIXED_MATH long s = sin.as_glfixed(); long c = cos.as_glfixed(); #else long s = sin * (1<<16); long c = cos * (1<<16); #endif Rotatex(s, c); }
void Rotate(const Angle &alpha) { fixed sin, cos; alpha.sin_cos(sin, cos); #ifdef FIXED_MATH long s = sin.as_glfixed(); long c = cos.as_glfixed(); #else long s = sin * (1<<16); long c = cos * (1<<16); #endif Rotatex(s, c); }