mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
fix sin implementation
This commit is contained in:
parent
81db1b861c
commit
1ac9e54296
|
@ -289,7 +289,7 @@ impl<I: FixedWidthSignedInteger, const N: usize> Num<I, N> {
|
||||||
pub fn sin(self) -> Self {
|
pub fn sin(self) -> Self {
|
||||||
let one: Self = I::one().into();
|
let one: Self = I::one().into();
|
||||||
let four: I = 4.into();
|
let four: I = 4.into();
|
||||||
(self - one / four).cos()
|
(self + one / four).cos()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue