Package gov.nih.mipav.model.algorithms
Class ContourPlot.TranslatedPoint2D
java.lang.Object
java.awt.geom.Point2D
gov.nih.mipav.model.algorithms.ContourPlot.TranslatedPoint2D
- All Implemented Interfaces:
Cloneable
- Enclosing class:
ContourPlot
The TranslatedPoint2D is an implementation of
Point2D
that references another Point2D and has a certain fixed
translation from that point.
When changing the location of the referenced point, this
point will change accordingly.- Author:
- hageldave
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTranslatedPoint2D(Point2D origin, double xt, double yt) Creates a newContourPlot.TranslatedPoint2Dfrom the specified point with specified translation. -
Method Summary
Methods inherited from class java.awt.geom.Point2D
distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
Field Details
-
tx
public final double tx -
ty
public final double ty -
origin
-
-
Constructor Details
-
TranslatedPoint2D
Creates a newContourPlot.TranslatedPoint2Dfrom the specified point with specified translation.- Parameters:
origin- the point from which the created point is translatedxt- translation in x directionyt- translation in y direction
-
-
Method Details
-
getX
public double getX() -
getY
public double getY() -
setLocation
public void setLocation(double x, double y) Sets the location of this point'soriginso that this point ends up at the desired location.- Specified by:
setLocationin classPoint2D
-
clone
-
toString
-