Exemplo n.º 1
0
 public override int GetHashCode()
 {
     FNVHash fnv = new FNVHash();
     uint floats = fnv.Hash((uint)voronoiInf, (uint)cloudInf, (uint)1f);
     uint ints = fnv.Hash((uint)size, (uint)seed, (uint)seed);
     return (int)fnv.Hash(floats, ints, (uint)seed);
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     FNVHash fnv = new FNVHash();
     uint pass1 = fnv.Hash((uint)upperLeftStart, (uint)lowerLeftStart, (uint)lowerRightStart);
     uint pass2 = fnv.Hash((uint)lowerLeftStart, (uint)lowerRightStart, (uint)upperRightStart);
     uint pass3 = fnv.Hash((uint)lowerRightStart, (uint)upperRightStart, (uint)upperLeftStart);
     return (int)fnv.Hash(pass1, pass2, pass3);
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     FNVHash fnv = new FNVHash();
     return (int)fnv.Hash((uint)metric, (uint)combiner, (uint)(numberOfFeaturePoints^numberOfSubregions));
 }