Package itumulator.display.utility
Class Point2DInt
java.lang.Object
itumulator.display.utility.Point2DInt
Utility class to produce points
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getX()
int
getY()
interpolate
(Point2DInt other, double progress) Interpolates between two pixel point 2d with roundingvoid
setX
(int x) void
setY
(int y)
-
Constructor Details
-
Point2DInt
public Point2DInt(int x, int y)
-
-
Method Details
-
getY
public int getY() -
setY
public void setY(int y) -
getX
public int getX() -
setX
public void setX(int x) -
interpolate
Interpolates between two pixel point 2d with rounding- Parameters:
other
- the other point to interpolate toprogress
- from 0.0 to 1.0- Returns:
- a new Point2DInt with the interpolated coordinates
-