MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / velocity

Method velocity

physics/n_body_simulation.py:56–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54
55 @property
56 def velocity(self) -> tuple[float, float]:
57 return self.velocity_x, self.velocity_y
58
59 def update_velocity(
60 self, force_x: float, force_y: float, delta_time: float

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected