Inverse.java
Go to the documentation of this file.
1 
5 import java.util.*;
6 import net.sf.geographiclib.*;
13 public class Inverse {
14  public static void main(String[] args) {
15  try {
16  Scanner in = new Scanner(System.in);
17  double lat1, lon1, lat2, lon2;
18  while (true) {
19  lat1 = in.nextDouble(); lon1 = in.nextDouble();
20  lat2 = in.nextDouble(); lon2 = in.nextDouble();
21  GeodesicData g = Geodesic.WGS84.Inverse(lat1, lon1, lat2, lon2);
22  System.out.println(g.azi1 + " " + g.azi2 + " " + g.s12);
23  }
24  }
25  catch (Exception e) {}
26  }
27 }
static final Geodesic WGS84
Definition: Geodesic.java:1207
Definition: pytypes.h:1322
void g(const string &key, int i)
Definition: testBTree.cpp:43
GeodesicData Inverse(double lat1, double lon1, double lat2, double lon2)
Definition: Geodesic.java:615
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static void main(String[] args)
Definition: Inverse.java:14


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:15