Package kr.toxicity.library.dynamicuv
Class UVIndexer
java.lang.Object
kr.toxicity.library.dynamicuv.UVIndexer
Manages indexing for UV models, colors, flags, and floats.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Gets the next color index.intflag()Gets the next flag index.intfloats()Gets the next float index.intmodel()Gets the next model index.intshiftColor(int shift) Shifts the color index by the given amount.intshiftFlag(int shift) Shifts the flag index by the given amount.intshiftFloats(int shift) Shifts the float index by the given amount.intshiftModel(int shift) Shifts the model index by the given amount.
-
Constructor Details
-
UVIndexer
public UVIndexer()
-
-
Method Details
-
model
public int model()Gets the next model index.- Returns:
- the next model index
-
color
public int color()Gets the next color index.- Returns:
- the next color index
-
flag
public int flag()Gets the next flag index.- Returns:
- the next flag index
-
floats
public int floats()Gets the next float index.- Returns:
- the next float index
-
shiftModel
public int shiftModel(int shift) Shifts the model index by the given amount.- Parameters:
shift- the amount to shift- Returns:
- the previous model index
-
shiftColor
public int shiftColor(int shift) Shifts the color index by the given amount.- Parameters:
shift- the amount to shift- Returns:
- the previous color index
-
shiftFlag
public int shiftFlag(int shift) Shifts the flag index by the given amount.- Parameters:
shift- the amount to shift- Returns:
- the previous flag index
-
shiftFloats
public int shiftFloats(int shift) Shifts the float index by the given amount.- Parameters:
shift- the amount to shift- Returns:
- the previous float index
-