All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
color.h File Reference
+ Include dependency graph for color.h:

Go to the source code of this file.

Classes

class  GfColor
 Represents a color in a specific color space. More...
 

Functions

bool GfIsClose (GfColor const &c1, GfColor const &c2, double tolerance)
 Tests for equality of the RGB tuple in a color with a given tolerance, returning true if the length of the difference vector is less than or equal to tolerance.
 
std::ostream & operator<< (std::ostream &, GfColor const &)
 Output a GfColor.
 

Function Documentation

◆ GfIsClose()

bool GfIsClose ( GfColor const &  c1,
GfColor const &  c2,
double  tolerance 
)
inline

Tests for equality of the RGB tuple in a color with a given tolerance, returning true if the length of the difference vector is less than or equal to tolerance.

This comparison does not adapt the colors to the same color space before comparing, and is not a perceptual comparison.

Definition at line 114 of file color.h.