java.awt.geom
Class Point2D.Float
java.lang.Object
|
+--java.awt.geom.Point2D
|
+--java.awt.geom.Point2D.Float
public static class
Point2D.Floatextends
Point2D This class defines a point in float
precision.
Since:Author:- Eric Blake <ebb9@email.byu.edu>
x
public float x
The X coordinate.
y
public float y
The Y coordinate.
Float
public Float()
Create a new point at (0,0).
Float
public Float(float x, float y)
Create a new point at (x,y).
Parameters:
getX
public double getX()
Return the x coordinate.
Returns:
getY
public double getY()
Return the y coordinate.
Returns:
setLocation
public void setLocation(double x, double y)
Sets the location of this point.
Parameters:
setLocation
public void setLocation(float x, float y)
Sets the location of this point.
Parameters:
toString
public String toString()
Returns a string representation of this object. The format is:
"Point2D.Float[" + x + ", " + y + ']'
.
Returns:
- a string representation of this object
float
precision.