mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-28 13:06:33 +00:00
Add Scalar::sqrt
This commit is contained in:
parent
4a2277d3e7
commit
03c5752d8e
@ -125,6 +125,11 @@ impl Scalar {
|
||||
self.value.round().into()
|
||||
}
|
||||
|
||||
/// # Compute the square root of the scalar value
|
||||
pub fn sqrt(self) -> Self {
|
||||
self.value.sqrt().into()
|
||||
}
|
||||
|
||||
/// # Compute the sine of the scalar value
|
||||
pub fn sin(self) -> Self {
|
||||
self.value.sin().into()
|
||||
|
Loading…
x
Reference in New Issue
Block a user