public class ProjectedMeters extends Object implements IProjectedMeters, 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.
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ProjectedMeters> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
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(Object o) |
double |
getEasting()
Get projected meters in east direction.
|
double |
getNorthing()
Get projected meters in north direction.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public static final Parcelable.Creator<ProjectedMeters> CREATOR
public ProjectedMeters(double northing, double easting)
northing
- the northing in meterseasting
- the easting in meterspublic ProjectedMeters(ProjectedMeters projectedMeters)
projectedMeters
- The projected meters to be based on.public double getNorthing()
getNorthing
in interface IProjectedMeters
public double getEasting()
getEasting
in interface IProjectedMeters
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
© 2015–2017 Mapbox. All rights reserved.