public final class Point extends Object
Represent point with fractional coordinates.
Constructor and Description |
---|
Point(double x,
double y)
Initializes new instance of the
Point . |
Modifier and Type | Method and Description |
---|---|
static Point |
getTrivial()
Gets point with zero coordinates.
|
double |
getX()
Gets X coordinate value.
|
double |
getY()
Gets Y coordinate value.
|
void |
setX(double value)
Sets X coordinate value.
|
void |
setY(double value)
Sets Y coordinate value.
|
Point2D.Float |
toPoint()
Converts point into java.awt.geom.Point2D.Float object.
|
String |
toString() |
public Point(double x, double y)
Initializes new instance of the Point
.
x
- x coordinate value.y
- y coordinate value.public double getX()
Gets X coordinate value.
public void setX(double value)
Sets X coordinate value.
value
- double valuepublic double getY()
Gets Y coordinate value.
public void setY(double value)
Sets Y coordinate value.
value
- double valuepublic static Point getTrivial()
Gets point with zero coordinates.
public Point2D.Float toPoint()
Converts point into java.awt.geom.Point2D.Float object.