Lines Matching refs:maxVal
188 int maxVal = minVal + rangeLen;
191 valueRange.getMax().component(ndx).asInt() = maxVal;
210 float maxVal = minVal + step*(float)rangeLen;
213 valueRange.getMax().component(ndx).asFloat() = maxVal;
363 float maxVal = +10.0f;
369 maxVal = valueRange.getMax().component(0).asFloat();
374 if (Scalar::max<float>() == maxVal)
375 maxVal = +10.0f;
378 int numSteps = (int)((maxVal-minVal)/step) + 1;
380 const float value = deFloatClamp(minVal + step*(float)state.getRandom().getInt(0, numSteps), minVal, maxVal);
394 float maxVal = valueRange.getMax().asFloat();
396 if (Scalar::min<float>() == minVal && Scalar::max<float>() == maxVal)
400 float rangeLength = maxVal - minVal;
421 int maxVal = +16;
426 maxVal = valueRange.getMax().component(0).asInt();
431 if (Scalar::max<int>() == maxVal)
432 maxVal = 16;
435 int value = state.getRandom().getInt(minVal, maxVal);
449 int maxVal = valueRange.getMax().asInt();
451 if (Scalar::min<int>() == minVal && Scalar::max<int>() == maxVal)
454 int rangeLength = maxVal - minVal;
475 int maxVal = 1;
480 maxVal = valueRange.getMax().component(0).asBool() ? 1 : 0;
483 bool value = state.getRandom().getInt(minVal, maxVal) == 1;