mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +00:00
Update name of struct field
This commit is contained in:
parent
3c7a2317c1
commit
1da2844030
@ -2,15 +2,15 @@ pub type Point = [Scalar; 3];
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct Scalar {
|
||||
inner: f64,
|
||||
value: f64,
|
||||
}
|
||||
|
||||
impl Scalar {
|
||||
pub fn new(value: f64) -> Self {
|
||||
Self { inner: value }
|
||||
Self { value }
|
||||
}
|
||||
|
||||
pub fn value(&self) -> f64 {
|
||||
self.inner
|
||||
self.value
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user