public class ProjectedMeters extends Object implements 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
Inner class responsible for recreating Parcels into objects.
|
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()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
|
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one.
|
double |
getEasting()
Get projected meters in east direction.
|
double |
getNorthing()
Get projected meters in north direction.
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
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()
public double getEasting()
public boolean equals(Object other)
public int hashCode()
public String toString()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written© 2015–2019 Mapbox. All rights reserved.