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 }
Planimeter.main
static void main(String[] args)
Definition: Planimeter.java:15
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
net.sf.geographiclib.Geodesic
Definition: Geodesic.java:202
net.sf
net.sf.geographiclib.PolygonResult.area
double area
Definition: PolygonResult.java:25
net.sf.geographiclib.PolygonArea
Definition: PolygonArea.java:60
net.sf.geographiclib.Geodesic.WGS84
static final Geodesic WGS84
Definition: Geodesic.java:1207
net
Planimeter
Definition: Planimeter.java:14
net.sf.geographiclib.PolygonResult.num
int num
Definition: PolygonResult.java:17
net.sf.geographiclib
Definition: Accumulator.java:8
net.sf.geographiclib.PolygonResult
Definition: PolygonResult.java:13
args
Definition: pytypes.h:2210
p
float * p
Definition: Tutorial_Map_using.cpp:9
lon
static const double lon
Definition: testGeographicLib.cpp:34
net.sf.geographiclib.PolygonResult.perimeter
double perimeter
Definition: PolygonResult.java:21
lat
static const double lat
Definition: testGeographicLib.cpp:34


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:12:45