@Test
public void testClampFloat() {

    Assert.assertEquals(5.1f, MathUtil.clamp(20.6f, 1.8f, 5.1f), 0);
    Assert.assertEquals(2.2f, MathUtil.clamp(-6.1f, 2.2f, 8.3f), 0);
    Assert.assertEquals(4.3f, MathUtil.clamp(4.3f, -7.1f, 19.7f), 0);
    Assert.assertEquals(3.4f, MathUtil.clamp(3.4f, 3.4f, 6.8f), 0);
    Assert.assertEquals(12.5f, MathUtil.clamp(12.5f, 9.3f, 12.5f), 0);
}