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