Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function To2D(eye:Point3D):Point
- {
- var result:Point = new Point(0, 0);
- result.x = ((Eye.z * (x - Eye.x)) / (Eye.z + z) + Eye.x);
- result.y = ((Eye.z * (y - Eye.y)) / (Eye.z + z) + Eye.y);
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement