math::color< T > Class Template Reference

List of all members.

Classes

struct  type

Public Member Functions

 color (double newR, double newG, double newB, double newA)
 color (double newr, double newg, double newb, double newA, char newtr, char newtg, char newtb)
 color (const color &rhs)
void set (double newR, double newG, double newB, double newA)
math::color< T > rand ()
void setR (double newR)
void setG (double newG)
void setB (double newB)
void setA (double newA)
double getR () const
double getG () const
double getB () const
double getA () const
void setBlack ()
void setWhite ()
void setGrey (double shade)
math::color< T > lerp (const color &c2, double factor)
math::color< T > operator+ (const color &rhs) const
math::color< T > operator- (const color &rhs) const
math::color< T > operator* (const color &rhs) const
math::color< T > operator/ (const color &rhs) const
math::color< T > operator* (const double rhs) const
math::color< T > operator/ (const double rhs) const
bool operator== (math::color< T > const &rhs) const
bool operator!= (color< T > const &rhs) const
math::color< T > operator+= (color< T > const &rhs)
math::color< T > operator-= (color< T > const &rhs)
math::color< T > operator*= (const color &rhs)
math::color< T > operator/= (const color &rhs)
math::color< T > operator*= (const double rhs)
math::color< T > operator/= (const double rhs)
math::color< T > operator- () const
math::color< T > operator+ () const
void clampTo01 ()
void print ()
double saw (double t, double f)
void step (double time)
math::color< T > operator* (double f)
 operator double * () const
 operator double const * () const

Public Attributes

double r
double g
double b
double a
double fr
double fg
double fb
char tr
char tg
char tb

template<typename T>
class math::color< T >


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions

Generated on 24 Apr 2014 for math by  doxygen 1.6.1