Class DPoint
- All Implemented Interfaces:
Serializable, Cloneable
Point with double coordinates used by the JABA convex hull algorithms and graphs.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Point2D
Point2D.Double, Point2D.Float -
Field Summary
Fields inherited from class Point2D.Double
x, y -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Point2D.Double
getX, getY, setLocation, toStringMethods inherited from class Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
-
Constructor Details
-
DPoint
public DPoint(double x, double y) Make a DPoint from the coordinates- Parameters:
x- The x of the pointy- The y of the point
-
DPoint
Make a DPoint from coordinates and station's name- Parameters:
x- The x of the pointy- The y of the pointlabel- The name of the point
-
-
Method Details
-
getLabel
-
isSelect
public boolean isSelect()Return true if the point is selected- Returns:
- True if the point is selected
-
setSelect
public void setSelect(boolean isSelect) Set the selection value of the point- Parameters:
isSelect- If the point is selected or not
-
polarAngle
public double polarAngle() -
intEquals
Control if the integer part of the coordinates are equals- Parameters:
p- the p value- Returns:
- true if the integer part of the coordinates are equals
-
equals
-