public class NdsPoint
extends java.lang.Object
implements android.os.Parcelable
Point的几百倍Point的使用方式相同| 构造器和说明 |
|---|
NdsPoint() |
NdsPoint(double longitude,
double latitude)
根据经纬度构造Nds格式的坐标.
|
NdsPoint(int x,
int y) |
NdsPoint(NdsPoint src) |
NdsPoint(android.graphics.Point pt)
根据普通格式坐标点构造Nds格式的坐标
|
NdsPoint(PointD pt)
根据经纬度构造Nds格式的坐标.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents()
Parcelable interface methods
|
boolean |
equals(int x,
int y)
Returns true if the point's coordinates equal (x,y)
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
void |
readFromParcel(android.os.Parcel in)
Set the point's coordinates from the data stored in the specified parcel.
|
void |
set(double longitude,
double latitude)
设置经纬度
|
void |
set(int x,
int y)
Set the point's x and y coordinates
|
void |
set(NdsPoint src) |
android.graphics.Point |
toPoint()
转换为普通格式坐标点
|
PointD |
toPointD()
转换为经纬度坐标,单位:度
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags)
Write this point to the specified parcel.
|
public int x
public int y
public static final android.os.Parcelable.Creator<NdsPoint> CREATOR
public NdsPoint()
public NdsPoint(int x,
int y)
public NdsPoint(NdsPoint src)
public NdsPoint(android.graphics.Point pt)
pt - 普通坐标点public NdsPoint(double longitude,
double latitude)
longitude - 经度latitude - 纬度public NdsPoint(PointD pt)
pt - 经纬度坐标public android.graphics.Point toPoint()
public PointD toPointD()
public void set(int x,
int y)
public void set(double longitude,
double latitude)
longitude - 经度latitude - 纬度public void set(NdsPoint src)
public final boolean equals(int x,
int y)
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic int describeContents()
describeContents 在接口中 android.os.Parcelablepublic void writeToParcel(android.os.Parcel out,
int flags)
writeToParcel 在接口中 android.os.Parcelableout - The parcel to write the point's coordinates intopublic void readFromParcel(android.os.Parcel in)
in - The parcel to read the point's coordinates from©Mapbar Engine Team;All Rights Reserved