Esempio n. 1
0
        public UVPoint NextUV()
        {
            var i = ++_index;

            return(new UVPoint(QuasiRandom.RadicalInverseScrambled(i, 0, _dim0Perms),
                               QuasiRandom.RadicalInverseScrambled(i, 1, _dim1Perms)));
        }
Esempio n. 2
0
        public QuasiRandomSampler(ulong index)
        {
            _index = index;
            _rInd  = index;

            _dim0Perms = QuasiRandom.PermutationsForDimension(RadicalInversePermutations, 0).ToArray();
            _dim1Perms = QuasiRandom.PermutationsForDimension(RadicalInversePermutations, 1).ToArray();
            _dim2Perms = QuasiRandom.PermutationsForDimension(RadicalInversePermutations, 2).ToArray();
        }
Esempio n. 3
0
 public float Random() => QuasiRandom.RadicalInverseScrambled(_rInd++, 2, _dim2Perms);