I am working with a simulation of an aircraft traversing a route where the position of the aircraft and waypoints are in the form [X, Y, Z] where X and Y are the 2D Cartesian coordinates on a flat plane and Z is the altitude from that flat plane.
However, we are now implementing routes in the real world with waypoints in the form of [Lat, Lon, alt]. What are some valid ways of converting these coordinates to a Cartesian counterpart and have them exist on a flat plane?
These routes are never more than 50 miles in one direction so I dont need to convert the entire global coordinate system, just at most 50 miles worth. Additionally, I am aware that there are ways that convert to a Cartesian coordinate system for lat/lon but they always result in a [X, Y, Z] coordinate, assuming a point on a sphere in 3D space.