Class BilinearInterpolator

java.lang.Object
gaiasky.scene.record.BilinearInterpolator

public class BilinearInterpolator extends Object
  • Constructor Details Link icon

    • BilinearInterpolator Link icon

      public BilinearInterpolator()
  • Method Details Link icon

    • interpolate Link icon

      public static double interpolate(double u, double v, BilinearInterpolator.GridModel model, boolean wrapX, boolean wrapY)
      Interpolates the given grid model with the values of the given texture coordinates UV.
      Parameters:
      u - The U coordinate.
      v - The V coordinate.
      model - The grid model.
      wrapX - Wrap the interpolation in the X coordinate.
      wrapY - Wrap the interpolation in the Y coordinate.
      Returns:
      The bi-linearly interpolated value.