checkpoint 2025-08-27
This commit is contained in:
@@ -26,7 +26,7 @@ impl MaxflowProblem {
|
||||
// check if node is too close to another node (distance < 40)
|
||||
let mut too_close = true;
|
||||
let (mut x, mut y) = (0.0, 0.0);
|
||||
// this is a poor attempt at modeling a do..while look in Rust
|
||||
// this is a poor attempt at modeling a do..while loop in Rust
|
||||
while too_close {
|
||||
too_close = false;
|
||||
x = rng.gen_range(0.0..=400.0);
|
||||
@@ -140,9 +140,4 @@ impl MaxflowProblem {
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
||||
fn intersects_poly(a: (f32, f32), b: (f32, f32), c: (f32, f32), d: (f32, f32)) -> bool {
|
||||
let mut intersects = Self::intersects(a, b, c, d);
|
||||
todo!();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user