mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-26 03:56:50 +00:00
Implement From<f64>
for Scalar
This commit is contained in:
parent
204362bdcc
commit
ad5805825f
@ -49,3 +49,9 @@ impl PartialOrd for Scalar {
|
|||||||
Some(self.cmp(other))
|
Some(self.cmp(other))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<f64> for Scalar {
|
||||||
|
fn from(value: f64) -> Self {
|
||||||
|
Self::new(value)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user