mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-10 21:08:27 +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)]
|
#[derive(Clone, Copy)]
|
||||||
pub struct Scalar {
|
pub struct Scalar {
|
||||||
inner: f64,
|
value: f64,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Scalar {
|
impl Scalar {
|
||||||
pub fn new(value: f64) -> Self {
|
pub fn new(value: f64) -> Self {
|
||||||
Self { inner: value }
|
Self { value }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn value(&self) -> f64 {
|
pub fn value(&self) -> f64 {
|
||||||
self.inner
|
self.value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user