MCL
Minimalistic Color Library
 All Classes Files
LCH Class Reference

l: [0..100]; c: [0..120]; h: [0..360]; a: [0..1]

#include <nauths/mcl/spaces/lch.hh>

+ Inheritance diagram for LCH:

Public Types

enum  Key {
  L = 0, C = 1, H = 2, A = 3,
  ALPHA = 3
}
 
typedef double Value
 
typedef XYZ Reference
 
typedef std::array< Value, 4 > Super
 

Public Member Functions

 LCH (Value l, Value c, Value h)
 
 LCH (Value l, Value c, Value h, Value a)
 
Value l () const
 
Value c () const
 
Value h () const
 
Value a () const
 
Value & l ()
 
Value & c ()
 
Value & h ()
 
Value & a ()
 
Value alpha () const
 
Value & alpha ()
 
void l (Value x)
 
void c (Value x)
 
void h (Value x)
 
void a (Value x)
 
void alpha (Value x)
 
void clamp ()
 
LCH clamped () const
 
void round (double to=0.001)
 
LCH rounded (double to=0.001) const
 

Static Public Member Functions

static SpaceType type ()
 

Public Attributes

elements
 STL member.
 

The documentation for this class was generated from the following files: