Changeset 9810 in josm for trunk/test/unit/org
- Timestamp:
- 2016-02-16T23:45:21+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/coor/LatLonTest.java
r9806 r9810 13 13 private static final double EPSILON = 1e-6; 14 14 15 /** 16 * Lat/Lon sample values for unit tests 17 */ 15 18 public static final double[] SAMPLE_VALUES = new double[]{ 16 19 -180.0, -179.9, -179.6, -179.5, -179.4, -179.1, -179.0, -100.0, -99.9, -10.0, -9.9, -1.0, -0.1, … … 135 138 LatLon e = new LatLon(47.000000, 19.000001); 136 139 LatLon n = new LatLon(47.000001, 19.000000); 137 assertEquals( 138 assertEquals( 140 assertEquals(0, Math.toDegrees(c.bearing(n)), EPSILON); 141 assertEquals(90, Math.toDegrees(c.bearing(e)), EPSILON); 139 142 assertEquals(180, Math.toDegrees(n.bearing(c)), EPSILON); 140 143 assertEquals(270, Math.toDegrees(e.bearing(c)), EPSILON);
Note:
See TracChangeset
for help on using the changeset viewer.