Use float instead of double

Hopefully fixes https://github.com/libgdx/libgdx/issues/1505