mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
fix name of trig functions
This commit is contained in:
parent
46c5dcd2de
commit
e675fc5c3e
|
@ -431,7 +431,7 @@ impl<I: FixedWidthSignedInteger, const N: usize> Num<I, N> {
|
||||||
Num(self.0.fixed_abs())
|
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 <https://github.com/tarcieri/micromath/blob/24584465b48ff4e87cffb709c7848664db896b4f/src/float/cos.rs#L226>
|
/// see <https://github.com/tarcieri/micromath/blob/24584465b48ff4e87cffb709c7848664db896b4f/src/float/cos.rs#L226>
|
||||||
/// ```
|
/// ```
|
||||||
/// # use agb_fixnum::*;
|
/// # use agb_fixnum::*;
|
||||||
|
@ -462,7 +462,7 @@ impl<I: FixedWidthSignedInteger, const N: usize> Num<I, N> {
|
||||||
x
|
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::*;
|
/// # use agb_fixnum::*;
|
||||||
/// let n: Num<i32, 8> = num!(0.); // 0 radians
|
/// let n: Num<i32, 8> = num!(0.); // 0 radians
|
||||||
|
@ -681,7 +681,7 @@ impl<const N: usize> Vector2D<Num<i32, N>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Calculates the magnitude of a vector using the alpha max plus beta min
|
/// 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 <https://en.wikipedia.org/wiki/Alpha_max_plus_beta_min_algorithm>
|
||||||
/// this has a maximum error of less than 4% of the true magnitude, probably
|
/// this has a maximum error of less than 4% of the true magnitude, probably
|
||||||
/// depending on the size of your fixed point approximation
|
/// depending on the size of your fixed point approximation
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in a new issue