@Test public void testSetFullSphere() throws Exception { Sector a = new Sector(34.2, -119.2, 1.0, 2.0); a.setFullSphere(); assertEquals("minLatitude", -90.0, a.minLatitude(), 0); assertEquals("maxLatitude", 90.0, a.maxLatitude(), 0); assertEquals("minLongitude", -180.0, a.minLongitude(), 0); assertEquals("maxLongitude", 180.0, a.maxLongitude(), 0); assertEquals("deltaLatitude", 180.0, a.deltaLatitude(), 0); assertEquals("deltaLongitude", 360.0, a.deltaLongitude(), 0); }
public Sector setFullSphere() { this.minLatitude = -90; this.maxLatitude = 90; this.minLongitude = -180; this.maxLongitude = 180; return this; }
Sector { public Sector setFullSphere() { this.minLatitude = -90; this.maxLatitude = 90; this.minLongitude = -180; this.maxLongitude = 180; return this; } }
Sector { public Sector setFullSphere() { this.minLatitude = -90; this.maxLatitude = 90; this.minLongitude = -180; this.maxLongitude = 180; return this; } Sector();  Sector(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude);  Sector(Sector sector); }
Sector { public Sector setFullSphere() { this.minLatitude = -90; this.maxLatitude = 90; this.minLongitude = -180; this.maxLongitude = 180; return this; } Sector();  Sector(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude);  Sector(Sector sector); static Sector fromDegrees(double latitudeDegrees, double longitudeDegrees,
                                     double deltaLatitudeDegrees, double deltaLongitudeDegrees); static Sector fromRadians(double latitudeRadians, double longitudeRadians,
                                     double deltaLatitudeRadians, double deltaLongitudeRadians); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); boolean isEmpty(); boolean isFullSphere(); double minLatitude(); double maxLatitude(); double minLongitude(); double maxLongitude(); double deltaLatitude(); double deltaLongitude(); double centroidLatitude(); double centroidLongitude(); Location centroid(Location result); Sector set(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); Sector set(Sector sector); Sector setEmpty(); Sector setFullSphere(); boolean intersects(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); boolean intersects(Sector sector); boolean intersectsOrNextTo(Sector sector); boolean intersect(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); boolean intersect(Sector sector); boolean contains(double latitude, double longitude); boolean contains(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); boolean contains(Sector sector); Sector union(double latitude, double longitude); Sector union(float[] array, int count, int stride); Sector union(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); Sector union(Sector sector); Sector translate(double deltaLatitude, double deltaLongitude); }
Sector { public Sector setFullSphere() { this.minLatitude = -90; this.maxLatitude = 90; this.minLongitude = -180; this.maxLongitude = 180; return this; } Sector();  Sector(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude);  Sector(Sector sector); static Sector fromDegrees(double latitudeDegrees, double longitudeDegrees,
                                     double deltaLatitudeDegrees, double deltaLongitudeDegrees); static Sector fromRadians(double latitudeRadians, double longitudeRadians,
                                     double deltaLatitudeRadians, double deltaLongitudeRadians); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); boolean isEmpty(); boolean isFullSphere(); double minLatitude(); double maxLatitude(); double minLongitude(); double maxLongitude(); double deltaLatitude(); double deltaLongitude(); double centroidLatitude(); double centroidLongitude(); Location centroid(Location result); Sector set(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); Sector set(Sector sector); Sector setEmpty(); Sector setFullSphere(); boolean intersects(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); boolean intersects(Sector sector); boolean intersectsOrNextTo(Sector sector); boolean intersect(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); boolean intersect(Sector sector); boolean contains(double latitude, double longitude); boolean contains(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); boolean contains(Sector sector); Sector union(double latitude, double longitude); Sector union(float[] array, int count, int stride); Sector union(double minLatitude, double minLongitude, double deltaLatitude, double deltaLongitude); Sector union(Sector sector); Sector translate(double deltaLatitude, double deltaLongitude);  }