public static ulong Hash64(float x, float y, float z) { var hasher = Hasher.Create(); hasher.AddAligned64(TwoSinglesULongUnion.ReinterpretCast(x, y)); hasher.Add(SingleUIntUnion.ReinterpretCast(z)); return(hasher.Finalize64()); }
public static uint Hash32(float x, float y, float z, float w) { var hasher = Hasher.Create(); hasher.AddAligned64(TwoSinglesULongUnion.ReinterpretCast(x, y)); hasher.AddAligned64(TwoSinglesULongUnion.ReinterpretCast(z, w)); return(hasher.Finalize32()); }
public static ulong Hash64(float x, float y) { return(Hash64(TwoSinglesULongUnion.ReinterpretCast(x, y))); }