Serializable
, Cloneable
Point2D
The Float
class defines a point specified in float precision.
Fields
float
The X coordinate of this Point2D
.
float
The Y coordinate of this Point2D
.
Constructors
Constructs and initializes a Point2D
with coordinates (0, 0).
Constructs and initializes a Point2D
with the specified coordinates.
double
Returns the X coordinate of this Point2D
in double
precision.
double
Returns the Y coordinate of this Point2D
in double
precision.
void
Sets the location of this Point2D
to the specified double
coordinates.
void
Sets the location of this Point2D
to the specified float
coordinates.
Returns a String
that represents the value of this Point2D
.
public float x
The X coordinate of this Point2D
.
public float y
The Y coordinate of this Point2D
.
public Float()
Constructs and initializes a Point2D
with coordinates (0, 0).
public Float(float x, float y)
Constructs and initializes a Point2D
with the specified coordinates.
x
- the X coordinate of the newly constructed Point2D
y
- the Y coordinate of the newly constructed Point2D
public double getX()
Returns the X coordinate of this Point2D
in double
precision.
public double getY()
Returns the Y coordinate of this Point2D
in double
precision.
public void setLocation(double x, double y)
Sets the location of this Point2D
to the specified double
coordinates.
setLocation
in class Point2D
x
- the new X coordinate of this Point2D
y
- the new Y coordinate of this Point2D
public void setLocation(float x, float y)
Sets the location of this Point2D
to the specified float
coordinates.
x
- the new X coordinate of this Point2D
y
- the new Y coordinate of this Point2D
Returns a String
that represents the value of this Point2D
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4