View source on GitHub |
This module implements orthographic camera functionalities.
An orthographic camera represents three-dimensional objects in two dimensions by parallel projection, in which the projection lines are parallel to the camera axis. The camera axis is the line perpendicular to the image plane starting at the camera center.
Functions
project(...)
: Projects a 3d point onto the 2d camera plane.
ray(...)
: Computes the 3d ray for a 2d point (the z component of the ray is 1).
unproject(...)
: Unprojects a 2d point in 3d.