public class ProjectedMeters extends java.lang.Object implements IProjectedMeters, android.os.Parcelable
these have been projected into Mapbox GL's Mercator projection. Instead of decimal degrees, it uses Mercator meters (which are notably not equivalent to SI meters) except at the equator.
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<ProjectedMeters> |
CREATOR |
| Constructor and Description |
|---|
ProjectedMeters(double northing,
double easting)
Creates a ProjectedMeters based on projected meters in north and east direction
|
ProjectedMeters(ProjectedMeters projectedMeters)
Creates a ProjecteMeters based on another set of projected meters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
double |
getEasting()
Get projected meters in east direction.
|
double |
getNorthing()
Get projected meters in north direction.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final android.os.Parcelable.Creator<ProjectedMeters> CREATOR
public ProjectedMeters(double northing,
double easting)
northing - easting - public ProjectedMeters(ProjectedMeters projectedMeters)
projectedMeters - The projected meters to be based on.public double getNorthing()
getNorthing in interface IProjectedMeterspublic double getEasting()
getEasting in interface IProjectedMeterspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel out,
int flags)
writeToParcel in interface android.os.Parcelable