restructuring

This commit is contained in:
Simon Gardling
2021-04-01 10:33:05 -04:00
parent f8b16c720b
commit 41ba5f248c
6 changed files with 231 additions and 122 deletions

View File

@@ -1,6 +1,6 @@
use crate::{
blur::Blur,
model::Agent,
agent::Agent,
};
use rand::{distributions::Uniform, Rng};
@@ -86,11 +86,11 @@ pub struct Grid {
pub width: usize,
pub height: usize,
data: Vec<f32>,
pub data: Vec<f32>,
// Scratch space for the blur operation.
buf: Vec<f32>,
blur: Blur,
pub buf: Vec<f32>,
pub blur: Blur,
pub agents: Vec<Agent>
}