BEPUutilities2.PermutationMapper.GetMappedIndex C# (CSharp) Méthode

GetMappedIndex() public méthode

Gets a remapped index.
public GetMappedIndex ( int index, int setSize ) : int
index int Original index of an element in the set to be redirected to a shuffled position.
setSize int Size of the set being permuted. Must be smaller than 350000041.
Résultat int
        public int GetMappedIndex(int index, int setSize)
        {
            return (int)((index * currentPrime + currentOffset) % setSize);
        }

Same methods

PermutationMapper::GetMappedIndex ( long index, int setSize ) : long