public class ProjectedMeters
extends java.lang.Object
implements 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
Inner class responsible for recreating Parcels into objects.
|
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(java.lang.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.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(android.os.Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final android.os.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(@Nullable java.lang.Object other)
equals
in class java.lang.Object
other
- The object to compare this topublic int hashCode()
hashCode
in class java.lang.Object
@NonNull public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(@NonNull android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written