Here is the first version of the ray tracing collision detection function. Currently it only works for the simple situation where the aircraft is flying in a linear 2D trajector with a stationary object. The next versions will be testing moving trajectories.