Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
GeographicLib
java
planimeter
src
main
java
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
}
net.sf.geographiclib.Geodesic.WGS84
static final Geodesic WGS84
Definition:
Geodesic.java:1207
net.sf.geographiclib.PolygonArea.Compute
PolygonResult Compute()
Definition:
PolygonArea.java:184
lat
static const double lat
Definition:
testGeographicLib.cpp:35
args
Definition:
pytypes.h:1322
net.sf.geographiclib.PolygonArea.AddPoint
void AddPoint(double lat, double lon)
Definition:
PolygonArea.java:134
Planimeter
Definition:
Planimeter.java:14
net.sf.geographiclib.PolygonArea
Definition:
PolygonArea.java:60
net
net.sf.geographiclib.Geodesic
Definition:
Geodesic.java:202
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
net.sf.geographiclib.PolygonResult.area
double area
Definition:
PolygonResult.java:25
net.sf.geographiclib.PolygonResult.num
int num
Definition:
PolygonResult.java:17
net.sf.geographiclib.PolygonResult.perimeter
double perimeter
Definition:
PolygonResult.java:21
System
net.sf
Planimeter.main
static void main(String[] args)
Definition:
Planimeter.java:15
p
float * p
Definition:
Tutorial_Map_using.cpp:9
net.sf.geographiclib
Definition:
Accumulator.java:8
lon
static const double lon
Definition:
testGeographicLib.cpp:35
net.sf.geographiclib.PolygonResult
Definition:
PolygonResult.java:13
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:43:27