Lines Matching defs:other
45 SPColor::SPColor( SPColor const& other ) :
48 *this = other;
70 SPColor& SPColor::operator= (SPColor const& other)
72 if (this == &other){
76 SVGICCColor* tmp_icc = other.icc ? new SVGICCColor(*other.icc) : 0;
78 v.c[0] = other.v.c[0];
79 v.c[1] = other.v.c[1];
80 v.c[2] = other.v.c[2];
93 bool SPColor::operator == (SPColor const& other) const
96 (v.c[0] == other.v.c[0]) &&
97 (v.c[1] == other.v.c[1]) &&
98 (v.c[2] == other.v.c[2]);
100 match &= profileMatches( icc, other.icc );
109 bool SPColor::isClose( SPColor const& other, float epsilon ) const
111 bool match = (fabs((v.c[0]) - (other.v.c[0])) < epsilon)
112 && (fabs((v.c[1]) - (other.v.c[1])) < epsilon)
113 && (fabs((v.c[2]) - (other.v.c[2])) < epsilon);
115 match &= profileMatches( icc, other.icc );