From 5717991ada1847549b3154a20803f21c5688c3e5 Mon Sep 17 00:00:00 2001 From: Matt Huszagh Date: Thu, 17 Dec 2020 09:31:18 -0800 Subject: [PATCH] atan2: result range is from i32::MIN+1 to i32::MAX --- dsp/src/trig.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsp/src/trig.rs b/dsp/src/trig.rs index 51e8b2e..57e4fec 100644 --- a/dsp/src/trig.rs +++ b/dsp/src/trig.rs @@ -18,7 +18,7 @@ include!(concat!(env!("OUT_DIR"), "/cossin_table.rs")); /// # Returns /// /// The angle between the x-axis and the ray to the point (x,y). The -/// result range is from i32::MIN to i32::MAX, where i32::MIN +/// result range is from i32::MIN+1 to i32::MAX, where i32::MIN+1 /// corresponds to an angle of -pi and i32::MAX corresponds to an /// angle of +pi. pub fn atan2(y: i32, x: i32) -> i32 {