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

            return(new UVPoint(QuasiRandom.RadicalInverseScrambled(i, 0, _dim0Perms),
                               QuasiRandom.RadicalInverseScrambled(i, 1, _dim1Perms)));
        }
Ejemplo 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();
        }
Ejemplo n.º 3
0
 public float Random() => QuasiRandom.RadicalInverseScrambled(_rInd++, 2, _dim2Perms);