Example #1
0
 public MWCRandom(IntVector3 p, int seed)
 {
     m_z = Hash.HashUInt32((uint)p.GetHashCode());
     m_w = (uint)seed;
     if (m_z == 0)
         m_z = 1;
     if (m_w == 0)
         m_w = 1;
 }
Example #2
0
 public override int GetHashCode()
 {
     return(pos.GetHashCode());
 }
		public override int GetHashCode()
		{
			return _index.GetHashCode();
		}
Example #4
0
 public override int GetHashCode()
 {
     unchecked {
         return(pos.GetHashCode() * 31 + rotation.GetHashCode());
     }
 }