@@ -41,7 +41,7 @@ namespace ColorSpaces
41
41
/**
42
42
* <summary>CIE's 1960 UCS Color Space. Also named CIE's 1960 Yuv Color Space.</summary>
43
43
*/
44
- public sealed class CIEUCS : AConvertibleColor
44
+ public sealed class CIE1960 : AConvertibleColor
45
45
{
46
46
#region properties
47
47
@@ -78,7 +78,7 @@ public sealed class CIEUCS : AConvertibleColor
78
78
*/
79
79
public double Y { get { return V ; } }
80
80
81
- static List < CIEUCS > TemperatureChromaticities = null ;
81
+ static List < CIE1960 > TemperatureChromaticities = null ;
82
82
83
83
double CCT = double . NaN ;
84
84
@@ -96,7 +96,7 @@ public sealed class CIEUCS : AConvertibleColor
96
96
* <param name="W">CIE's 1960 UCS W coordinate</param>
97
97
* <param name="dataSource">If you aren't working with ColorSharp internals, don't use this parameter</param>
98
98
*/
99
- public CIEUCS ( double U , double V , double W , AConvertibleColor dataSource = null ) : base ( dataSource )
99
+ public CIE1960 ( double U , double V , double W , AConvertibleColor dataSource = null ) : base ( dataSource )
100
100
{
101
101
if ( U < 0.0 || V < 0.0 || W < 0.0 ) {
102
102
throw new ArgumentException ( "Invalid color point" ) ;
@@ -120,7 +120,7 @@ public CIEUCS (double U, double V, double W, AConvertibleColor dataSource=null)
120
120
* <param name="W">CIE's 1960 UCS W coordinate</param>
121
121
* <param name="dataSource">If you aren't working with ColorSharp internals, don't use this parameter</param>
122
122
*/
123
- public CIEUCS ( AConvertibleColor dataSource , double u , double v , double W ) : base ( dataSource )
123
+ public CIE1960 ( AConvertibleColor dataSource , double u , double v , double W ) : base ( dataSource )
124
124
{
125
125
if ( u < 0.0 || v < 0.0 || W < 0 || u + v > 1.0 ) {
126
126
throw new ArgumentException ( "Invalid color point" ) ;
@@ -150,7 +150,7 @@ public CIEUCS (AConvertibleColor dataSource, double u, double v, double W) : bas
150
150
* <param name="W">CIE's 1960 UCS W coordinate</param>
151
151
* <param name="dataSource">If you aren't working with ColorSharp internals, don't use this parameter</param>
152
152
*/
153
- public CIEUCS ( double U , double V , double u , double v , double W , AConvertibleColor dataSource = null ) : base ( dataSource )
153
+ public CIE1960 ( double U , double V , double u , double v , double W , AConvertibleColor dataSource = null ) : base ( dataSource )
154
154
{
155
155
if ( U < 0.0 || V < 0.0 || W < 0.0 || u < 0.0 || v < 0.0 ) {
156
156
throw new ArgumentException ( "Invalid color point" ) ;
@@ -203,7 +203,7 @@ public override double GetCCT ()
203
203
// Precomputing interpolation tables...
204
204
if ( TemperatureChromaticities == null ) {
205
205
// Oversized to improve alignment (needs 302).
206
- TemperatureChromaticities = new List < CIEUCS > ( 512 ) ;
206
+ TemperatureChromaticities = new List < CIE1960 > ( 512 ) ;
207
207
208
208
// From 1000º K to 20000º K
209
209
for ( double t = 1000.0 ; t < 20001.0 ; t *= 1.01 ) {
@@ -286,7 +286,7 @@ public override CIEXYZ ToCIEXYZ ()
286
286
/**
287
287
* <inheritdoc />
288
288
*/
289
- public override CIEUCS ToCIEUCS ( )
289
+ public override CIE1960 ToCIEUCS ( )
290
290
{
291
291
return this ;
292
292
}
@@ -301,7 +301,7 @@ public override CIEUCS ToCIEUCS ()
301
301
*/
302
302
public override bool Equals ( Object obj )
303
303
{
304
- CIEUCS ucsObj = obj as CIEUCS ;
304
+ CIE1960 ucsObj = obj as CIE1960 ;
305
305
306
306
if ( ucsObj == this ) {
307
307
return true ;
0 commit comments