Update the position and half extent, incrementing the version
(&self, position: f64, half_extent: f64)
| 31 | |
| 32 | /// Update the position and half extent, incrementing the version |
| 33 | pub fn set(&self, position: f64, half_extent: f64) { |
| 34 | let mut inner = self.inner.write().unwrap(); |
| 35 | inner.position = position; |
| 36 | inner.half_extent = half_extent; |
| 37 | inner.version = inner.version.wrapping_add(1); |
| 38 | } |
| 39 | |
| 40 | /// Get the current version |
| 41 | pub(crate) fn version(&self) -> u64 { |