|
|
@ -76,12 +76,7 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation.RgbColorSap |
|
|
/// <inheritdoc/>
|
|
|
/// <inheritdoc/>
|
|
|
public override bool Equals(object obj) |
|
|
public override bool Equals(object obj) |
|
|
{ |
|
|
{ |
|
|
if (obj is RgbPrimariesChromaticityCoordinates) |
|
|
return obj is RgbPrimariesChromaticityCoordinates coordinates && this.Equals(coordinates); |
|
|
{ |
|
|
|
|
|
return this.Equals((RgbPrimariesChromaticityCoordinates)obj); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
/// <inheritdoc/>
|
|
|
@ -90,6 +85,12 @@ namespace SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation.RgbColorSap |
|
|
return this.R.Equals(other.R) && this.G.Equals(other.G) && this.B.Equals(other.B); |
|
|
return this.R.Equals(other.R) && this.G.Equals(other.G) && this.B.Equals(other.B); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public override string ToString() |
|
|
|
|
|
{ |
|
|
|
|
|
return $"RgbPrimariesChromaticityCoordinates [ R={this.R}, G={this.G}, B={this.B}]"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
/// <inheritdoc />
|
|
|
public override int GetHashCode() |
|
|
public override int GetHashCode() |
|
|
{ |
|
|
{ |
|
|
|