Add Scalar::sqrt

This commit is contained in:
Hanno Braun 2025-03-21 22:15:05 +01:00
parent 4a2277d3e7
commit 03c5752d8e

View File

@ -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()