Class Point2DInt

java.lang.Object
itumulator.display.utility.Point2DInt

public class Point2DInt extends Object
Utility class to produce points
  • 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

      public Point2DInt interpolate(Point2DInt other, double progress)
      Interpolates between two pixel point 2d with rounding
      Parameters:
      other - the other point to interpolate to
      progress - from 0.0 to 1.0
      Returns:
      a new Point2DInt with the interpolated coordinates