public class PointF
extends java.lang.Object
implements java.io.Serializable
PointF(float, float)
to create instance 'pointf'.toAndroidPointF()
Modifier and Type | Method and Description |
---|---|
boolean |
equals(float x,
float y)
Returns true if the point's coordinates equal (x,y)
|
float |
length()
Return the euclidian distance from (0,0) to the point
|
float |
length(float x,
float y)
Returns the euclidian distance from (0,0) to (x,y)
|
void |
negate() |
void |
offset(float dx,
float dy) |
void |
set(float x,
float y)
Set the point's x and y coordinates
|
void |
set(PointF p)
Set the point's x and y coordinates to the coordinates of p
|
java.lang.Object |
toAndroidPointF()
Convert this class to android.graphics.PointF by reflection.
It is not suggested to call this method frequently. |
java.lang.String |
toString() |
public final void set(float x, float y)
public final void set(PointF p)
public final void negate()
public final void offset(float dx, float dy)
public final boolean equals(float x, float y)
public final float length()
public float length(float x, float y)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object toAndroidPointF()
Copyright © SAS Institute. All Rights Reserved.