MCL
Minimalistic Color Library
 All Classes Files
XYZ Class Reference

x: [0..120]; y: [0..120]; z: [0..120]; a: [0..1]

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

+ Inheritance diagram for XYZ:

Public Types

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

Public Member Functions

 XYZ (Value l, Value c, Value h)
 
 XYZ (Value l, Value c, Value h, Value a)
 
Value x () const
 
Value y () const
 
Value z () const
 
Value a () const
 
Value & x ()
 
Value & y ()
 
Value & z ()
 
Value & a ()
 
Value alpha () const
 
Value & alpha ()
 
void x (Value n)
 
void y (Value n)
 
void z (Value n)
 
void a (Value n)
 
void alpha (Value x)
 
void clamp ()
 
XYZ clamped () const
 
void round (double to=0.001)
 
XYZ 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: