Lots of cleanups, and return T: Float from noise functions

Given that you're always casting to f32 in this case, you should probably just use `as f32`. Then you can remove the type annotation on the variable.