Fixed mistake that generated too many points in lattice.
This commit is contained in:
@@ -42,7 +42,7 @@ fn main() {
|
|||||||
for i in 0..DIMENSION {
|
for i in 0..DIMENSION {
|
||||||
let mut new_points = points.clone();
|
let mut new_points = points.clone();
|
||||||
for point in &points {
|
for point in &points {
|
||||||
for j in 0..SIZE {
|
for j in 1..SIZE {
|
||||||
let mut new_point = point.clone();
|
let mut new_point = point.clone();
|
||||||
new_point[i] = j as f32;
|
new_point[i] = j as f32;
|
||||||
new_points.push(new_point);
|
new_points.push(new_point);
|
||||||
|
|||||||
Reference in New Issue
Block a user