Build 1.0_r1(from source)

android.graphics
Class PointF

java.lang.Object
  extended by android.graphics.PointF

public class PointF
extends Object

PointF holds two float coordinates


Field Summary
 float x
           
 float y
           
 
Constructor Summary
PointF()
           
PointF(float x, float y)
           
PointF(Point p)
           
 
Method Summary
 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
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public float x

y

public float y
Constructor Detail

PointF

public PointF()

PointF

public PointF(float x,
              float y)

PointF

public PointF(Point p)
Method Detail

set

public final void set(float x,
                      float y)
Set the point's x and y coordinates


set

public final void set(PointF p)
Set the point's x and y coordinates to the coordinates of p


negate

public final void negate()

offset

public final void offset(float dx,
                         float dy)

equals

public final boolean equals(float x,
                            float y)
Returns true if the point's coordinates equal (x,y)


length

public final float length()
Return the euclidian distance from (0,0) to the point


length

public static float length(float x,
                           float y)
Returns the euclidian distance from (0,0) to (x,y)


Build 1.0_r1(from source)

Please submit a feedback, bug or feature