From e675fc5c3eb653071b9ba6e9afa4887949b5ac73 Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 2 Aug 2022 18:53:15 +0100 Subject: [PATCH] fix name of trig functions --- agb-fixnum/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agb-fixnum/src/lib.rs b/agb-fixnum/src/lib.rs index 2bb653a6..89d9b7bc 100644 --- a/agb-fixnum/src/lib.rs +++ b/agb-fixnum/src/lib.rs @@ -431,7 +431,7 @@ impl Num { Num(self.0.fixed_abs()) } - /// Calculates the cosign of a fixed point number with the domain of [0, 1]. + /// Calculates the cosine of a fixed point number with the domain of [0, 1]. /// see /// ``` /// # use agb_fixnum::*; @@ -462,7 +462,7 @@ impl Num { x } - /// Calculates the sign of a number with domain of [0, 1]. + /// Calculates the sine of a number with domain of [0, 1]. /// ``` /// # use agb_fixnum::*; /// let n: Num = num!(0.); // 0 radians @@ -681,7 +681,7 @@ impl Vector2D> { } /// Calculates the magnitude of a vector using the alpha max plus beta min - /// algorithm https://en.wikipedia.org/wiki/Alpha_max_plus_beta_min_algorithm + /// algorithm /// this has a maximum error of less than 4% of the true magnitude, probably /// depending on the size of your fixed point approximation /// ```