Beispiel #1
0
 public override int GetHashCode()
 {
     //TODO: Fix. Copy from Manbil::Vector4f.
     return(unchecked (First.GetHashCode() ^
                       Second.GetHashCode() ^
                       Third.GetHashCode() ^
                       Inversion.GetHashCode()));
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            var a = First.GetHashCode();
            var c = Third.GetHashCode();

            var ab = ((a << 5) + a) ^ Second.GetHashCode();
            var cd = ((c << 5) + a) ^ Third.GetHashCode();

            return(((ab << 5) + ab) ^ cd.GetHashCode());
        }