@@ -45,24 +45,19 @@ public CieLchuv(Vector3 vector)
4545 /// Gets the lightness dimension.
4646 /// <remarks>A value ranging between 0 (black), 100 (diffuse white) or higher (specular white).</remarks>
4747 /// </summary>
48- public readonly float L { get ; }
48+ public float L { get ; }
4949
5050 /// <summary>
5151 /// Gets the a chroma component.
5252 /// <remarks>A value ranging from 0 to 200.</remarks>
5353 /// </summary>
54- public readonly float C { get ; }
54+ public float C { get ; }
5555
5656 /// <summary>
5757 /// Gets the h° hue component in degrees.
5858 /// <remarks>A value ranging from 0 to 360.</remarks>
5959 /// </summary>
60- public readonly float H { get ; }
61-
62- /// <summary>
63- /// Gets the reference white point of this color
64- /// </summary>
65- public readonly CieXyz WhitePoint { get ; }
60+ public float H { get ; }
6661
6762 /// <summary>
6863 /// Compares two <see cref="CieLchuv"/> objects for equality.
@@ -151,7 +146,7 @@ public static ChromaticAdaptionWhitePointSource GetChromaticAdaptionWhitePointSo
151146
152147 /// <inheritdoc/>
153148 public override int GetHashCode ( )
154- => HashCode . Combine ( this . L , this . C , this . H , this . WhitePoint ) ;
149+ => HashCode . Combine ( this . L , this . C , this . H ) ;
155150
156151 /// <inheritdoc/>
157152 public override string ToString ( )
@@ -164,10 +159,7 @@ public override bool Equals(object? obj)
164159 /// <inheritdoc/>
165160 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
166161 public bool Equals ( CieLchuv other )
167- => this . L . Equals ( other . L )
168- && this . C . Equals ( other . C )
169- && this . H . Equals ( other . H )
170- && this . WhitePoint . Equals ( other . WhitePoint ) ;
162+ => new Vector3 ( this . L , this . C , this . H ) == new Vector3 ( other . L , other . C , other . H ) ;
171163
172164 /// <summary>
173165 /// Computes the saturation of the color (chroma normalized by lightness)
0 commit comments