public class MeshIndexCalculator extends IndexCalculator
size, uSize, vSize
Constructor and Description |
---|
MeshIndexCalculator(int uSize,
int vSize,
double uMin,
double uMax,
double vMin,
double vMax)
Creates new instance of
MeshIndexCalculator class |
Modifier and Type | Method and Description |
---|---|
double |
getU(int uIndex)
Gets mesh value for specified U index
|
double |
getV(int vIndex)
Gets mesh value for specified V index
|
getIndex, getUIndex, getVIndex
public MeshIndexCalculator(int uSize, int vSize, double uMin, double uMax, double vMin, double vMax)
MeshIndexCalculator
classuSize
- The U size of mesh to use for mappingvSize
- The V size of mesh to use for mappinguMin
- The min U value used by meshuMax
- The max U value used by meshvMin
- The min V value used by meshvMax
- The max V value used by meshpublic final double getU(int uIndex)
uIndex
- The U index to usepublic final double getV(int vIndex)
vIndex
- The V index to use