Class BilinearInterpolator

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

public class BilinearInterpolator extends Object
  • Constructor Details

    • BilinearInterpolator

      public BilinearInterpolator()
  • Method Details

    • interpolate

      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.