From 32407a6750e9e92fc7472382921f8aa926a6b88c Mon Sep 17 00:00:00 2001 From: Max042004 Date: Mon, 13 Oct 2025 18:13:08 +0800 Subject: [PATCH] Clarify comment It actually check both cases of 90 degrees and 270 degrees. --- src/trig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trig.c b/src/trig.c index 1d1166c9..176f7aec 100644 --- a/src/trig.c +++ b/src/trig.c @@ -72,7 +72,7 @@ void twin_sincos(twin_angle_t a, twin_fixed_t *sin, twin_fixed_t *cos) /* limit to [0..360) */ a = a & (TWIN_ANGLE_360 - 1); int c = a > TWIN_ANGLE_90 && a < TWIN_ANGLE_270; - /* special case for 90 degrees */ + /* special case for 90 and 270 degrees */ if ((a & ~(TWIN_ANGLE_180)) == TWIN_ANGLE_90) { sin_val = TWIN_FIXED_ONE; cos_val = 0;