check_lunar_collision
- ssapy.utils.check_lunar_collision(r, times, m=1000)[source][source]
Checks if the trajectory of a particle intersects with the Moon.
- Parameters:
r (np.array) – The particle’s trajectory in Cartesian coordinates.
times (an array of astropy.Time where r points are calculated.) –
m (int, optional) – The number of points to interpolate between. Defaults to 1000.
- Returns:
Indexes where collision occurs.
- Return type:
np.array