42 #include "LinearTwoColorCoder.hh" 46 ACG::Vec4uc LinearTwoColorCoder::color4_raw(
float _v)
const 50 static_cast<unsigned char>(c[0] * 255 + 0.5),
51 static_cast<unsigned char>(c[1] * 255 + 0.5),
52 static_cast<unsigned char>(c[2] * 255 + 0.5),
53 static_cast<unsigned char>(c[3] * 255 + 0.5));
56 ACG::Vec4f LinearTwoColorCoder::color_float4_raw(
float _v)
const 58 return (1 - _v) * minColor_ + _v * maxColor_;
Namespace providing different geometric functions concerning angles.
VectorT< unsigned char, 4 > Vec4uc