Logo Search packages:      
Sourcecode: agave version File versions  Download package

bool gcs::operator== ( tColorHsv  first,
tColorHsv  last 
)

Compare tColorHsv values

Definition at line 86 of file gcs-types.cc.

References gcs::tColorHsv::hue, gcs::tColorHsv::saturation, and gcs::tColorHsv::value.

    {
        if ((first.hue == last.hue &&
                    first.saturation == last.saturation &&
                    first.value == last.value) ||
                (first.value == 0 && last.value == 0))
        {
            return true;
        }
        else
        {
            return false;
        }
    }


Generated by  Doxygen 1.6.0   Back to index