Removed unnecessary \bug declarations.
[blaRAY.git] / World / Color.cc
blobd7f3f0d81236c9bbdc029de153ca851a9524b243
1 /**********************************************************************
2 * blaRAY -- photon mapper/raytracer
3 * (C) 2008 by Tomasz bla Fortuna <bla@thera.be>, <bla@af.gliwice.pl>
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * any later version.
10 * See Docs/LICENSE
11 *********************/
13 #include <iostream>
15 #include "General/Debug.hh"
16 #include "World/Color.hh"
18 namespace World {
20 std::ostream &operator<<(std::ostream &os, const Color &C)
22 os << "[Color " << C.Dump();
23 os << "]";
24 return os;
28 Color::Color(Double r, Double g, Double b)
30 if (DEBUG)
31 if ( r<0.0 || g<0.0 || b<0.0 || r>1.0 || g>1.0 | b > 1.0) {
32 std::cout << "Assert: Color value out of range" << std::endl;
33 exit(-1);
35 this->D[R] = r;
36 this->D[G] = g;
37 this->D[B] = b;