Commit c6e1c423 authored by Hippalectryon's avatar Hippalectryon

max

parent 2db72808
......@@ -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