Commit 2db72808 authored by Quentin LOUIS's avatar Quentin LOUIS

Ajout d'une méthode de calcul de la valeur max

parent 2706958b
......@@ -77,3 +77,10 @@ class Sky:
theta = np.random.rand() * np.pi * 2
bird = Bird(np.random.rand(2) * self.L, vel, ang_vel, theta)
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment