mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-09 17:56:56 +00:00
Add Scalar::round
This commit is contained in:
parent
d35a25a236
commit
3482a180e7
@ -87,6 +87,11 @@ impl Scalar {
|
||||
self.0.ceil().into()
|
||||
}
|
||||
|
||||
/// Round the scalar
|
||||
pub fn round(self) -> Self {
|
||||
self.0.round().into()
|
||||
}
|
||||
|
||||
/// Compute the cosine
|
||||
pub fn cos(self) -> Self {
|
||||
self.0.cos().into()
|
||||
|
Loading…
Reference in New Issue
Block a user