@Test public void testComputeArea() { assertEquals( SphericalUtil.computeArea(Arrays.asList(right, up, front, down, right)), Math.PI * EARTH_RADIUS * EARTH_RADIUS, .4); assertEquals( SphericalUtil.computeArea(Arrays.asList(right, down, front, up, right)), Math.PI * EARTH_RADIUS * EARTH_RADIUS, .4); }
public static double computeArea(List<LatLng> path) { return abs(computeSignedArea(path)); }
SphericalUtil { public static double computeArea(List<LatLng> path) { return abs(computeSignedArea(path)); } }
SphericalUtil { public static double computeArea(List<LatLng> path) { return abs(computeSignedArea(path)); } private  SphericalUtil(); }
SphericalUtil { public static double computeArea(List<LatLng> path) { return abs(computeSignedArea(path)); } private  SphericalUtil(); static double computeHeading(LatLng from, LatLng to); static LatLng computeOffset(LatLng from, double distance, double heading); static LatLng computeOffsetOrigin(LatLng to, double distance, double heading); static LatLng interpolate(LatLng from, LatLng to, double fraction); static double computeDistanceBetween(LatLng from, LatLng to); static double computeLength(List<LatLng> path); static double computeArea(List<LatLng> path); static double computeSignedArea(List<LatLng> path); }
SphericalUtil { public static double computeArea(List<LatLng> path) { return abs(computeSignedArea(path)); } private  SphericalUtil(); static double computeHeading(LatLng from, LatLng to); static LatLng computeOffset(LatLng from, double distance, double heading); static LatLng computeOffsetOrigin(LatLng to, double distance, double heading); static LatLng interpolate(LatLng from, LatLng to, double fraction); static double computeDistanceBetween(LatLng from, LatLng to); static double computeLength(List<LatLng> path); static double computeArea(List<LatLng> path); static double computeSignedArea(List<LatLng> path);  }