libdcp
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dcp::Chromaticity Class Reference

A representation of a x,y,z chromaticity, where z = 1 - x - y. More...

#include <chromaticity.h>

Public Member Functions

 Chromaticity (double x_, double y_)
 
double z () const
 
bool about_equal (Chromaticity const &other, float epsilon) const
 

Static Public Member Functions

static Chromaticity D65 ()
 

Public Attributes

double x = 0
 
double y = 0
 

Detailed Description

A representation of a x,y,z chromaticity, where z = 1 - x - y.

Definition at line 53 of file chromaticity.h.

Member Function Documentation

◆ about_equal()

bool dcp::Chromaticity::about_equal ( Chromaticity const &  other,
float  epsilon 
) const
inline
Returns
true if this Chromaticity's x and y are within epsilon of other

Definition at line 71 of file chromaticity.h.


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