Porting FOV to haxe

Will need testing of course.