We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b11ca commit 32407a6Copy full SHA for 32407a6
src/trig.c
@@ -72,7 +72,7 @@ void twin_sincos(twin_angle_t a, twin_fixed_t *sin, twin_fixed_t *cos)
72
/* limit to [0..360) */
73
a = a & (TWIN_ANGLE_360 - 1);
74
int c = a > TWIN_ANGLE_90 && a < TWIN_ANGLE_270;
75
- /* special case for 90 degrees */
+ /* special case for 90 and 270 degrees */
76
if ((a & ~(TWIN_ANGLE_180)) == TWIN_ANGLE_90) {
77
sin_val = TWIN_FIXED_ONE;
78
cos_val = 0;
0 commit comments