Core 1.0
Public Member Functions | Protected Attributes | Friends | List of all members
Xyz Class Reference

Color in XYZ space. More...

#include <color.h>

Public Member Functions

 Xyz (const double &, const double &, const double &)
 Create a color in XYZ space. More...
 
 Xyz (const Color &)
 Create a color in XYZ space from an input RGB color. More...
 
Color ToColor () const
 Convert to RGB space.
 

Protected Attributes

double z = 0.0
 Color xyz coefficients.
 

Friends

class Lab
 

Detailed Description

Color in XYZ space.

Constructor & Destructor Documentation

◆ Xyz() [1/2]

Xyz::Xyz ( const double &  x,
const double &  y,
const double &  z 
)
explicit

Create a color in XYZ space.

Parameters
x,y,zComponents.

◆ Xyz() [2/2]

Xyz::Xyz ( const Color c)
explicit

Create a color in XYZ space from an input RGB color.

Parameters
cColor.