public final class IlvDoublePoint extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
double |
x
The x location.
|
double |
y
The y location.
|
Constructor and Description |
---|
IlvDoublePoint()
Creates a new point located at
(0,0) . |
IlvDoublePoint(double x,
double y)
Creates a new point at specified location.
|
IlvDoublePoint(IlvDoublePoint p)
Creates a new point by copying an existing point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object point)
Tests the equality of points.
|
void |
floor()
Modifies the point so that the coordinates become mathematical integers.
|
int |
hashCode()
Returns a hash code for this
IlvDoublePoint . |
void |
setLocation(double x,
double y)
Changes the point location.
|
void |
setLocation(IlvDoublePoint p)
Changes the point location.
|
String |
toString()
Translates the point to a string.
|
void |
translate(double dx,
double dy)
Translates the point.
|
int |
xFloor()
Returns the x-coordinate of the point as a mathematical integer.
|
int |
yFloor()
Returns the y-coordinate of the point as a mathematical integer.
|
public IlvDoublePoint()
(0,0)
.public IlvDoublePoint(double x, double y)
x
- The x location.y
- The y location.public IlvDoublePoint(IlvDoublePoint p)
public void translate(double dx, double dy)
public void setLocation(double x, double y)
public void setLocation(IlvDoublePoint p)
public void floor()
public int xFloor()
public int yFloor()
public boolean equals(Object point)
public int hashCode()
IlvDoublePoint
.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.