public class PointDouble
extends java.lang.Object
Constructor and Description |
---|
PointDouble()
Constructs and initializes a point at the origin
(0, 0) of the coordinate space.
|
PointDouble(double x,
double y) |
Modifier and Type | Method and Description |
---|---|
double |
getX()
The X location in pixels.
|
double |
getY()
The Y location in pixels.
|
static Point |
round(PointDouble value) |
static Point[] |
round(PointDouble[] value) |
static Point[] |
round(PointDouble[] value,
int size) |
void |
setX(double value)
Sets the X location in pixels.
|
void |
setY(double value)
Sets the Y location in pixels.
|
public PointDouble()
public PointDouble(double x, double y)
public double getX()
public void setX(double value)
value
- doublepublic double getY()
public void setY(double value)
value
- doublepublic static Point round(PointDouble value)
public static Point[] round(PointDouble[] value)
public static Point[] round(PointDouble[] value, int size)