It might just work as accurate as possible :D Not sure why sqrt(intersection.y) is neccessary though...