Make IApproxEquatable have an in type param

This commit is contained in:
Pieter-Jan Briers
2018-10-20 14:43:35 +02:00
parent 96802bdbe0
commit 61185f3bde

View File

@@ -3,7 +3,7 @@
/// <summary>
/// Approximate equality checking, to handle floating point errors.
/// </summary>
public interface IApproxEquatable<T>
public interface IApproxEquatable<in T>
{
bool EqualsApprox(T other);
bool EqualsApprox(T other, double tolerance);