SimMeta: make the fields private
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user