Implement ability to push minecarts on curved rails

This is my first real code contribution to an open source project. I'm grateful for any advice!
Well if it is a very small negative number, I figured the output wouldn't really matter. A precision of +- 1/1000th of a block seems negligable to me and definitely not noticable to the end user.