colour: describe the rationale for overloaded cast operator

This commit is contained in:
Danny Robson 2016-08-12 15:17:09 +10:00
parent 94ef217778
commit 931dc65727

View File

@ -29,6 +29,7 @@ namespace util {
using coord::base<S,T,util::colour,coord::rgba,coord::hsv>::base;
using base_t = coord::base<S,T,util::colour,coord::rgba,coord::hsv>;
// overloaded cast operator which assumes values are unit normalised
template <typename U>
colour<S,U>
cast (void) const;