Skip to content

Commit 32407a6

Browse files
committed
Clarify comment
It actually check both cases of 90 degrees and 270 degrees.
1 parent 53b11ca commit 32407a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void twin_sincos(twin_angle_t a, twin_fixed_t *sin, twin_fixed_t *cos)
7272
/* limit to [0..360) */
7373
a = a & (TWIN_ANGLE_360 - 1);
7474
int c = a > TWIN_ANGLE_90 && a < TWIN_ANGLE_270;
75-
/* special case for 90 degrees */
75+
/* special case for 90 and 270 degrees */
7676
if ((a & ~(TWIN_ANGLE_180)) == TWIN_ANGLE_90) {
7777
sin_val = TWIN_FIXED_ONE;
7878
cos_val = 0;

0 commit comments

Comments
 (0)