Class TrackerPoint
java.lang.Object
org.ampere.base.util.TrackerPoint
Represent a point using floating point coordinates (double)
to be used for tracker, i.e. the class is mutable
- Author:
- Herve Morel
-
Constructor Summary
ConstructorsConstructorDescriptionTrackerPoint(double x, double y) Creates a new instance of PointTrackerPoint(TrackerPoint source) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetX()doublegetY()voidhighestPoint(double newX, double newY) voidleftmost(double newX, double newY) voidlowestPoint(double newX, double newY) voidrightmost(double newX, double newY) toString()
-
Constructor Details
-
TrackerPoint
public TrackerPoint(double x, double y) Creates a new instance of Point- Parameters:
x- abcissa valuey- ordinate value
-
TrackerPoint
-
-
Method Details
-
getX
public double getX() -
getY
public double getY() -
toString
-
leftmost
public void leftmost(double newX, double newY) -
rightmost
public void rightmost(double newX, double newY) -
highestPoint
public void highestPoint(double newX, double newY) -
lowestPoint
public void lowestPoint(double newX, double newY)
-