Planimeter.java
Go to the documentation of this file.
1 
5 import java.util.*;
6 import net.sf.geographiclib.*;
14 public class Planimeter {
15  public static void main(String[] args) {
16  PolygonArea p = new PolygonArea(Geodesic.WGS84, false);
17  try {
18  Scanner in = new Scanner(System.in);
19  while (true) {
20  double lat = in.nextDouble(), lon = in.nextDouble();
21  p.AddPoint(lat, lon);
22  }
23  }
24  catch (Exception e) {}
25  PolygonResult r = p.Compute();
26  System.out.println(r.num + " " + r.perimeter + " " + r.area);
27  }
28 }
static final Geodesic WGS84
Definition: Geodesic.java:1207
static const double lat
Definition: pytypes.h:1322
void AddPoint(double lat, double lon)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static void main(String[] args)
Definition: Planimeter.java:15
float * p
static const double lon


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:43:27