Class Overview
PointF holds two float coordinates
Summary
Public Methods |
int
|
describeContents()
Parcelable interface methods
|
final
boolean
|
equals(float x, float y)
Returns true if the point's coordinates equal (x,y)
|
final
float
|
length()
Return the euclidian distance from (0,0) to the point
|
static
float
|
length(float x, float y)
Returns the euclidian distance from (0,0) to (x,y)
|
final
void
|
negate()
|
final
void
|
offset(float dx, float dy)
|
void
|
readFromParcel(Parcel in)
Set the point's coordinates from the data stored in the specified
parcel.
|
final
void
|
set(float x, float y)
Set the point's x and y coordinates
|
final
void
|
set(PointF p)
Set the point's x and y coordinates to the coordinates of p
|
void
|
writeToParcel(Parcel out, int flags)
Write this point to the specified parcel.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
abstract
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel.
|
|
Fields
Public Constructors
public
PointF
(float x, float y)
Public Methods
public
int
describeContents
()
Parcelable interface methods
Returns
- a bitmask indicating the set of special object types marshalled
by the Parcelable.
public
final
boolean
equals
(float x, float y)
Returns true if the point's coordinates equal (x,y)
public
final
float
length
()
Return the euclidian distance from (0,0) to the point
public
static
float
length
(float x, float y)
Returns the euclidian distance from (0,0) to (x,y)
public
final
void
negate
()
public
final
void
offset
(float dx, float dy)
public
void
readFromParcel
(Parcel in)
Set the point's coordinates from the data stored in the specified
parcel. To write a point to a parcel, call writeToParcel().
Parameters
in
| The parcel to read the point's coordinates from
|
public
final
void
set
(float x, float y)
Set the point's x and y coordinates
public
final
void
set
(PointF p)
Set the point's x and y coordinates to the coordinates of p
public
void
writeToParcel
(Parcel out, int flags)
Write this point to the specified parcel. To restore a point from
a parcel, use readFromParcel()
Parameters
out
| The parcel to write the point's coordinates into
|
flags
| Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|