private void Clamp () { if (this < MinValue) { this = MinValue; } else if (this > MaxValue) { this = MaxValue; } }