mirror of
https://github.com/google/pebble
synced 2026-10-16 00:04:12 +02:00
+1
-1
@@ -548,7 +548,7 @@ static const uint16_t ATAN_LOOKUP[] = {
|
|||||||
int32_t sin_lookup(int32_t angle) {
|
int32_t sin_lookup(int32_t angle) {
|
||||||
int32_t mult = 1;
|
int32_t mult = 1;
|
||||||
|
|
||||||
// modify the input angle and output multiplier for use in a first quadrent sine lookup
|
// modify the input angle and output multiplier for use in a first quadrant sine lookup
|
||||||
if (angle < 0) {
|
if (angle < 0) {
|
||||||
angle = -angle;
|
angle = -angle;
|
||||||
mult = -mult;
|
mult = -mult;
|
||||||
|
|||||||
Reference in New Issue
Block a user