Home | History | Annotate | Download | only in randomshaders

Lines Matching full:amax

213 void ComputeMulRange::operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMin, float& bMax) const
235 aMax = aMin + subRangeLen;
243 de::inBounds(aMax*(scale-(float)i*scaleStep), dstMin, dstMax))
247 de::inBounds(aMax*(scale+(float)i*scaleStep), dstMin, dstMax))
254 std::swap(aMin, aMax);
257 aMax *= -1.0f;
264 DE_ASSERT(aMin <= aMax && bMin <= bMax);
267 DE_ASSERT(de::inRange(aMax*bMin, dstMin-eps, dstMax+eps));
268 DE_ASSERT(de::inRange(aMax*bMax, dstMin-eps, dstMax+eps));
272 void ComputeMulRange::operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, int& bMin, int& bMax) const
276 aMax = dstMax;
297 void ComputeAddRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
310 aMax = aMin+subRangeLen;
317 DE_ASSERT(aMin <= aMax && bMin <= bMax);
320 DE_ASSERT(de::inRange(aMax+bMin, dstMin-eps, dstMax+eps));
321 DE_ASSERT(de::inRange(aMax+bMax, dstMin-eps, dstMax+eps));
347 void ComputeSubRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
360 aMax = aMin+subRangeLen;
367 DE_ASSERT(aMin <= aMax && bMin <= bMax);
370 DE_ASSERT(de::inRange(aMax-bMin, dstMin-eps, dstMax+eps));
371 DE_ASSERT(de::inRange(aMax-bMax, dstMin-eps, dstMax+eps));
487 void ComputeLessThanRange::operator () (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
504 aMax = rMax;
513 aMax = rMin - getStep<T>();
514 aMin = aMax - aLen;
525 aMax = aMin + aLen;
543 void ComputeLessOrEqualRange::operator () (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
560 aMax = rMax;
569 aMax = rMin;
570 aMin = aMax - aLen;
581 aMax = aMin + aLen;
622 void computeEqualityValueRange (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax)
625 ComputeLessThanRange()(rnd, false, true, aMin, aMax, bMin, bMax);
627 ComputeLessThanRange()(rnd, true, true, aMin, aMax, bMin, bMax);
629 ComputeLessThanRange()(rnd, true, true, aMin, aMax, bMin, bMax);
642 aMax = val;
649 void computeEqualityValueRange<true, bool> (de::Random& rnd, bool dstMin, bool dstMax, bool& aMin, bool& aMax, bool& bMin, bool& bMax)
654 aMax = true;
664 aMax = val;
674 aMax = val;
681 void computeEqualityValueRange<false, bool> (de::Random& rnd, bool dstMin, bool dstMax, bool& aMin, bool& aMax, bool& bMin, bool& bMax)
684 computeEqualityValueRange<true>(rnd, dstMin, dstMax, aMin, aMax, bMin, bMax);
686 computeEqualityValueRange<true>(rnd, !dstMin, !dstMax, aMin, aMax, bMin, bMax);