I am looking for a java library to calculate with and transform locations (lat, lon). Operations I want to perform on the sphere:
- given two locations
x, yI want to know the distance fromxtoy - given three locations
x, y, zI want to know the angle betweenx,yandy,z - given two locations
x, y, an angleaand a distancedI want to know a locationzthat is defined by the angleatox,yand distancedfromy
Is, e.g., geotools able to perform these operations?