How can one find the GPS coordinates (latitude, longitude) of the foci of an ellipse, given the center GPS coordinate, the tilt from the west, and the major and minor widths?
I have consulted the following:
How can I determine if a GPS Coordinate is on or in an Ellipse?
How to determine if a latitude & longitude is within an ellipse
And other sources that involve geometry but not GPS coordinates. The geometry sources are good for calculating the focii positions in a cartesian plane, but I've not found a solution with code to convert between GPS coordinates and cartesian coordinates in Scala (or Java).
So if the major axis is 4 km and the minor axis is 2 km, and the tilt is 20 degrees, how can I get the GPS coordinates of the foci? Thanks.
Update: In response to the comments, I would like to clarify that the dimensions of the ellipse are small enough that I can approximate the earth under the ellipse as being flat.