Serializable
, Cloneable
Point2D
The Double
class defines a point specified in double
precision.
Fields
double
The X coordinate of this Point2D
.
double
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.
Returns a String
that represents the value of this Point2D
.
public double x
The X coordinate of this Point2D
.
public double y
The Y coordinate of this Point2D
.
public Double()
Constructs and initializes a Point2D
with coordinates (0, 0).
public Double(double x, double 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
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