[android] remove ILatLng and IProjectedMeteres (#13176)
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
package com.mapbox.mapboxsdk.geometry;
|
||||
|
||||
/**
|
||||
* Describes a latitude, longitude, and altitude tuple.
|
||||
*/
|
||||
public interface ILatLng {
|
||||
|
||||
/**
|
||||
* Get the latitude, in degrees.
|
||||
*
|
||||
* @return the latitude value in degrees
|
||||
*/
|
||||
double getLatitude();
|
||||
|
||||
/**
|
||||
* Get the longitude, in degrees.
|
||||
*
|
||||
* @return the longitude value in degrees
|
||||
*/
|
||||
double getLongitude();
|
||||
|
||||
/**
|
||||
* Get the altitude, in meters.
|
||||
*
|
||||
* @return the altitude value in meters
|
||||
*/
|
||||
double getAltitude();
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package com.mapbox.mapboxsdk.geometry;
|
||||
|
||||
/**
|
||||
* Describes a projection in Mercator meters.
|
||||
*/
|
||||
public interface IProjectedMeters {
|
||||
|
||||
/**
|
||||
* Get the north projection, in meters.
|
||||
*
|
||||
* @return the projected meters in north direction
|
||||
*/
|
||||
double getNorthing();
|
||||
|
||||
/**
|
||||
* Get the east projection, in meters.
|
||||
*
|
||||
* @return the projected meters in east direction
|
||||
*/
|
||||
double getEasting();
|
||||
|
||||
}
|
||||
@@ -21,7 +21,7 @@ import com.mapbox.mapboxsdk.constants.GeometryConstants;
|
||||
* data automatically, so all data enters in the WGS84 datum.
|
||||
* </p>
|
||||
*/
|
||||
public class LatLng implements ILatLng, Parcelable {
|
||||
public class LatLng implements Parcelable {
|
||||
|
||||
/**
|
||||
* Inner class responsible for recreating Parcels into objects.
|
||||
@@ -139,7 +139,6 @@ public class LatLng implements ILatLng, Parcelable {
|
||||
* @see GeometryConstants#MIN_LATITUDE
|
||||
* @see GeometryConstants#MAX_LATITUDE
|
||||
*/
|
||||
@Override
|
||||
public double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
@@ -177,7 +176,6 @@ public class LatLng implements ILatLng, Parcelable {
|
||||
* @see GeometryConstants#MIN_LONGITUDE
|
||||
* @see GeometryConstants#MAX_LONGITUDE
|
||||
*/
|
||||
@Override
|
||||
public double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
@@ -196,7 +194,6 @@ public class LatLng implements ILatLng, Parcelable {
|
||||
*
|
||||
* @return the altitude value in meters
|
||||
*/
|
||||
@Override
|
||||
public double getAltitude() {
|
||||
return altitude;
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@ public class LatLngBounds implements Parcelable {
|
||||
* @param latLngs List of LatLng objects
|
||||
* @return LatLngBounds
|
||||
*/
|
||||
static LatLngBounds fromLatLngs(final List<? extends ILatLng> latLngs) {
|
||||
static LatLngBounds fromLatLngs(final List<? extends LatLng> latLngs) {
|
||||
double minLat = GeometryConstants.MAX_LATITUDE;
|
||||
double maxLat = GeometryConstants.MIN_LATITUDE;
|
||||
|
||||
@@ -251,7 +251,7 @@ public class LatLngBounds implements Parcelable {
|
||||
}
|
||||
}
|
||||
|
||||
for (final ILatLng gp : latLngs) {
|
||||
for (final LatLng gp : latLngs) {
|
||||
final double latitude = gp.getLatitude();
|
||||
minLat = Math.min(minLat, latitude);
|
||||
maxLat = Math.max(maxLat, latitude);
|
||||
@@ -418,7 +418,7 @@ public class LatLngBounds implements Parcelable {
|
||||
* @param latLng the point which may be contained
|
||||
* @return true, if the point is contained within the bounds
|
||||
*/
|
||||
public boolean contains(final ILatLng latLng) {
|
||||
public boolean contains(final LatLng latLng) {
|
||||
return containsLatitude(latLng.getLatitude())
|
||||
&& containsLongitude(latLng.getLongitude());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ import android.support.annotation.Keep;
|
||||
* except at the equator.
|
||||
* </p>
|
||||
*/
|
||||
public class ProjectedMeters implements IProjectedMeters, Parcelable {
|
||||
public class ProjectedMeters implements Parcelable {
|
||||
|
||||
/**
|
||||
* Inner class responsible for recreating Parcels into objects.
|
||||
@@ -68,7 +68,6 @@ public class ProjectedMeters implements IProjectedMeters, Parcelable {
|
||||
*
|
||||
* @return Projected meters in north.
|
||||
*/
|
||||
@Override
|
||||
public double getNorthing() {
|
||||
return northing;
|
||||
}
|
||||
@@ -78,7 +77,6 @@ public class ProjectedMeters implements IProjectedMeters, Parcelable {
|
||||
*
|
||||
* @return Projected meters in east.
|
||||
*/
|
||||
@Override
|
||||
public double getEasting() {
|
||||
return easting;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user