mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 18:08:26 +00:00
Add Scalar::sin
This commit is contained in:
parent
0b6da29386
commit
06baede8e7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user