3 #ifndef COLOUR_H_INCLUDED
4 #define COLOUR_H_INCLUDED
44 Colour(
double r,
double g,
double b);
Class to store colour information.
Definition: Colour.h:25
double blue
The blue component of the Colour.
Definition: Colour.h:127
double red
The red component of the Colour.
Definition: Colour.h:125
double green
The green component of the Colour.
Definition: Colour.h:126
Colour & operator*=(const Colour &colour)
Colour multiplication-assignment operator.
Definition: Colour.cpp:63
Colour & operator-=(const Colour &colour)
Colour subtraction-assignment operator.
Definition: Colour.cpp:51
Colour()
Colour default constructor.
Definition: Colour.cpp:3
Colour & operator=(const Colour &colour)
Colour assignment operator.
Definition: Colour.cpp:22
Colour operator-() const
Colour unary negation.
Definition: Colour.cpp:31
Colour operator/(const Colour &colour, double s)
Colour-scalar division.
Definition: Colour.cpp:85
~Colour()
Colour destructor.
Definition: Colour.cpp:18
Colour & operator/=(double s)
Colour-scalar division-assignment operator.
Definition: Colour.cpp:89
void clip()
Enforce bounds on Colour components.
Definition: Colour.cpp:96
Colour operator+(const Colour &lhs, const Colour &rhs)
Colour addition.
Definition: Colour.cpp:35
Colour & operator+=(const Colour &colour)
Colour addition-assignment operator.
Definition: Colour.cpp:39
Colour operator-(const Colour &lhs, const Colour &rhs)
Colour subtraction.
Definition: Colour.cpp:47
friend Matrix operator*(const Matrix &lhs, const Matrix &rhs)
Matrix-Matrix multiplication operator.
Definition: Matrix.cpp:151