hgeColorRGB::Clamp

Clamps the color to the allowed range after calculations.

void Clamp();

Remarks

When doing calculations the color component values may exceed the allowed range from 0.0 to 1.0. Use this function after calculations to clamp the color components to the allowed range.

Requirements

Header: hgecolor.h