public static int VectorHash(Vector3 v) { int hash = 0; hash ^= (int) v.X; hash ^= (int) v.Y; hash ^= (int) v.Z; return hash; } }