19 lines
317 B
C#
19 lines
317 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace UltimateWater.Internal
|
|
{
|
|
public class FloatEqualityComparer : IEqualityComparer<float>
|
|
{
|
|
public bool Equals(float x, float y)
|
|
{
|
|
return x == y;
|
|
}
|
|
|
|
public int GetHashCode(float obj)
|
|
{
|
|
return (int)BitConverter.DoubleToInt64Bits(obj);
|
|
}
|
|
}
|
|
}
|