Browse Source

Making equality for spaces work on backingVector.

af/merge-core
Olivia 9 years ago
parent
commit
b87c8a202a
  1. 2
      src/ImageSharp/Colors/Spaces/CieLab.cs
  2. 2
      src/ImageSharp/Colors/Spaces/CieXyz.cs
  3. 2
      src/ImageSharp/Colors/Spaces/Cmyk.cs
  4. 2
      src/ImageSharp/Colors/Spaces/Hsl.cs
  5. 2
      src/ImageSharp/Colors/Spaces/Hsv.cs

2
src/ImageSharp/Colors/Spaces/CieLab.cs

@ -161,7 +161,7 @@ namespace ImageSharp.Colors.Spaces
/// <inheritdoc/> /// <inheritdoc/>
public bool Equals(CieLab other) public bool Equals(CieLab other)
{ {
return this.AlmostEquals(other, Constants.Epsilon); return this.backingVector.Equals(other.backingVector);
} }
/// <inheritdoc/> /// <inheritdoc/>

2
src/ImageSharp/Colors/Spaces/CieXyz.cs

@ -152,7 +152,7 @@ namespace ImageSharp.Colors.Spaces
/// <inheritdoc/> /// <inheritdoc/>
public bool Equals(CieXyz other) public bool Equals(CieXyz other)
{ {
return this.AlmostEquals(other, Constants.Epsilon); return this.backingVector.Equals(other.backingVector);
} }
/// <inheritdoc/> /// <inheritdoc/>

2
src/ImageSharp/Colors/Spaces/Cmyk.cs

@ -162,7 +162,7 @@ namespace ImageSharp.Colors.Spaces
/// <inheritdoc/> /// <inheritdoc/>
public bool Equals(Cmyk other) public bool Equals(Cmyk other)
{ {
return this.AlmostEquals(other, Constants.Epsilon); return this.backingVector.Equals(other.backingVector);
} }
/// <inheritdoc/> /// <inheritdoc/>

2
src/ImageSharp/Colors/Spaces/Hsl.cs

@ -181,7 +181,7 @@ namespace ImageSharp.Colors.Spaces
/// <inheritdoc/> /// <inheritdoc/>
public bool Equals(Hsl other) public bool Equals(Hsl other)
{ {
return this.AlmostEquals(other, Constants.Epsilon); return this.backingVector.Equals(other.backingVector);
} }
/// <inheritdoc/> /// <inheritdoc/>

2
src/ImageSharp/Colors/Spaces/Hsv.cs

@ -174,7 +174,7 @@ namespace ImageSharp.Colors.Spaces
/// <inheritdoc/> /// <inheritdoc/>
public bool Equals(Hsv other) public bool Equals(Hsv other)
{ {
return this.AlmostEquals(other, Constants.Epsilon); return this.backingVector.Equals(other.backingVector);
} }
/// <inheritdoc/> /// <inheritdoc/>

Loading…
Cancel
Save