Advertisement
sharkbanana

Untitled

May 25th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function To2D(eye:Point3D):Point
  2. {
  3.     var result:Point = new Point(0, 0);
  4.     result.x = ((Eye.z * (x - Eye.x)) / (Eye.z + z) + Eye.x);
  5.     result.y = ((Eye.z * (y - Eye.y)) / (Eye.z + z) + Eye.y);
  6.     return result;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement