Commit 6bbe3f3d authored by Quentin LOUIS's avatar Quentin LOUIS

Merge branch 'master' of gitlab.binets.fr:quentin.louis/phy571-birds-flocking

parents 6e82e2d7 c6e1c423
......@@ -78,9 +78,5 @@ class Sky:
bird = Bird(np.random.rand(2) * self.L, vel, ang_vel, theta)
self.add_bird(bird)
def vel_max(self) -> float:
vel_max = 0
for bird in self.birds:
if (vel_max < bird.vel):
vel_max = bird.vel
return vel_max
def get_max_vel(self) -> float:
return np.max([bird.vel for bird in self.birds])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment