Package gaiasky.scene.record
Class BilinearInterpolator
java.lang.Object
gaiasky.scene.record.BilinearInterpolator
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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.
-