public class PointF
extends java.lang.Object
Constructor and Description |
---|
PointF() |
PointF(float x,
float y) |
PointF(PointF p)
Create a new PointF initialized with the values in the specified
PointF (which is left unmodified).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(float x,
float y)
Returns true if the point's coordinates equal (x,y)
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
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)
|
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.String |
toString() |
public PointF()
public PointF(float x, float y)
public PointF(PointF p)
p
- The point whose values are copied into the new
point.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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public final float length()
public static float length(float x, float y)