Grid: remove unneeded power of two restriction
This commit is contained in:
parent
ab70ce7f53
commit
50e85dec90
@ -60,9 +60,6 @@ impl Grid {
|
||||
rng: &mut R,
|
||||
agents: Vec<Agent>,
|
||||
) -> Self {
|
||||
if !width.is_power_of_two() || !height.is_power_of_two() {
|
||||
panic!("Grid dimensions must be a power of two.");
|
||||
}
|
||||
let range = Uniform::from(0.0..1.0);
|
||||
let data = rng.sample_iter(range).take(width * height).collect();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user