SimMeta: make the fields private

This commit is contained in:
2022-08-23 23:23:49 -07:00
parent 17446cdc6b
commit 8e48414d68
6 changed files with 27 additions and 28 deletions

View File

@@ -13,11 +13,10 @@ use serde::{Serialize, Deserialize};
#[cfg_attr(feature = "fmt", derive(Debug))]
#[derive(Copy, Clone, Default, PartialEq)]
pub struct SimMeta<R> {
// TODO: make these private?
pub dim: Vec3u,
pub inv_feature_size: R,
pub time_step: R,
pub feature_size: R,
dim: Vec3u,
inv_feature_size: R,
time_step: R,
feature_size: R,
}
impl<R: Real> SimMeta<R> {
@@ -31,10 +30,13 @@ impl<R: Real> SimMeta<R> {
}
}
impl<R: Copy> SimMeta<R> {
impl<R> SimMeta<R> {
pub fn dim(&self) -> Vec3u {
self.dim
}
}
impl<R: Copy> SimMeta<R> {
pub fn inv_feature_size(&self) -> R {
self.inv_feature_size
}