Package net.lenni0451.imnbt.utils
Class ImageUtils
java.lang.Object
net.lenni0451.imnbt.utils.ImageUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatcalculateUV(int textureSize, int pos) Calculate the UV for a texture.
-
Constructor Details
-
ImageUtils
public ImageUtils()
-
-
Method Details
-
calculateUV
public static float calculateUV(int textureSize, int pos) Calculate the UV for a texture.- Parameters:
textureSize- The size of the texturepos- The pixel position- Returns:
- The UV
-