ssapy_toolkit.Coordinates.v_from_r
- ssapy_toolkit.Coordinates.v_from_r(r: ndarray, t: ndarray) ndarray[source]
Calculate velocity from position using numerical differentiation.
Uses centered differences for interior points and one-sided differences at the endpoints.
- Parameters:
r (np.ndarray) – Position array of shape (N, 3) in meters.
t (np.ndarray or Time-like) – Time array corresponding to the positions.
- Returns:
Velocity array of shape (N, 3) in meters per second.
- Return type:
np.ndarray