Add Scalar::sin

This commit is contained in:
Hanno Braun 2024-07-29 18:54:33 +02:00
parent 0b6da29386
commit 06baede8e7

View File

@ -128,6 +128,11 @@ impl Scalar {
self.0.round().into()
}
/// Compute the sine
pub fn sin(self) -> Self {
self.0.sin().into()
}
/// Compute the cosine
pub fn cos(self) -> Self {
self.0.cos().into()