public class PointD
extends java.lang.Object
implements android.os.Parcelable
构造器和说明 |
---|
PointD() |
PointD(double x,
double y) |
PointD(android.graphics.Point p) |
PointD(PointD p) |
PointD(android.graphics.PointF p) |
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents()
Parcelable interface methods
|
boolean |
equals(double x,
double y)
Returns true if the point's coordinates equal (x,y)
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
double |
length()
Return the euclidian distance from (0,0) to the point
|
static double |
length(double x,
double y)
Returns the euclidian distance from (0,0) to (x,y)
|
void |
negate() |
void |
offset(double dx,
double dy) |
void |
readFromParcel(android.os.Parcel in)
Set the point's coordinates from the data stored in the specified
parcel.
|
void |
set(double x,
double y)
Set the point's x and y coordinates
|
void |
set(PointD p)
Set the point's x and y coordinates to the coordinates of p
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags)
Write this point to the specified parcel.
|
public double x
public double y
public static final android.os.Parcelable.Creator<PointD> CREATOR
public PointD()
public PointD(double x, double y)
public PointD(PointD p)
public PointD(android.graphics.PointF p)
public PointD(android.graphics.Point p)
public final void set(double x, double y)
public final void set(PointD p)
public final void negate()
public final void offset(double dx, double dy)
public final boolean equals(double x, double y)
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object
public final double length()
public static double length(double x, double y)
public int describeContents()
describeContents
在接口中 android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
在接口中 android.os.Parcelable
out
- 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