Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ position
Method
position
physics/n_body_simulation.py:52–53 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
50
51
@property
52
def
position(self) -> tuple[float, float]:
53
return
self.position_x, self.position_y
54
55
@property
56
def
velocity(self) -> tuple[float, float]:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected