#include <color.H>
Inheritance diagram for HSVCOLOR:
Public Types | |
typedef double | value_type |
Public Member Functions | |
HSVCOLOR () | |
HSVCOLOR (double h, double s, double v) | |
HSVCOLOR (const double col[4]) | |
HSVCOLOR (CCOLOR &c) | |
Point3 () | |
Point3 (double s) | |
Point3 (double x, double y, double z) | |
void | set (double x, double y, double z) |
const double * | data () const |
double | operator[] (int index) const |
double & | operator[] (int index) |
HSVCOLOR | operator * (double s) const |
HSVCOLOR | operator/ (double s) const |
HSVCOLOR | operator+ (const HSVCOLOR &p) const |
Adds a point to a point. | |
HSVCOLOR | operator+ (const HSVCOLVEC &v) const |
HSVCOLVEC | operator- (const HSVCOLOR &p) const |
HSVCOLOR | operator- (const HSVCOLVEC &v) const |
HSVCOLOR | operator- () const |
void | operator+= (const HSVCOLOR &p) |
Adds a point to a point. | |
void | operator+= (const HSVCOLVEC &v) |
void | operator-= (const HSVCOLVEC &v) |
void | operator *= (double s) |
void | operator/= (double s) |
double | dist_sqrd (const HSVCOLOR &p) const |
Computes the distance squared between two points. | |
double | dist (const HSVCOLOR &p) const |
Computes the distance between two points. | |
bool | operator== (const HSVCOLOR &p) const |
Are the two points exactly equal (component wise)? | |
bool | operator!= (const HSVCOLOR &p) const |
Are the two points not equal (component wise)? | |
bool | is_equal (const HSVCOLOR &p, double epsSqrd=epsAbsSqrdMath()) const |
Is the distance squared between the two points essentially zero? | |
Static Public Member Functions | |
static int | dim () |
Protected Attributes | |
double | _x |
double | _y |
double | _z |
Definition at line 73 of file color.H.
|
|
|
|
|
|
|
|
|
Definition at line 50 of file color.C. References mlib::Point3< HSVCOLOR, HSVCOLVEC >::_x, mlib::Point3< HSVCOLOR, HSVCOLVEC >::_y, mlib::Point3< HSVCOLOR, HSVCOLVEC >::_z, max(), and min(). |
|
|
|
|
|
Computes the distance between two points.
|
|
Computes the distance squared between two points.
|
|
Is the distance squared between the two points essentially zero?
|
|
|
|
|
|
Are the two points not equal (component wise)?
|
|
|
|
Adds a point to a point.
|
|
|
|
Adds a point to a point.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Are the two points exactly equal (component wise)?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 46 of file point3.H. Referenced by HSVCOLOR(). |
|
Definition at line 46 of file point3.H. Referenced by HSVCOLOR(). |
|
Definition at line 46 of file point3.H. Referenced by HSVCOLOR(). |