Back to class index
| Frustum::UnProjectSyntaxRay Frustum::UnProject(float x, float y) const; [14 lines of code]Ray Frustum::UnProject(const float2 &xy) const; [1 lines of code] Finds a ray in world space that originates at the eye point and looks in the given direction inside the frustum. The (x,y) coordinate specifies the normalized viewport coordinate through which the ray passes. Both x and y must be in the range [-1,1]. Specifying (-1, -1) returns the bottom-left corner of the near plane. The point (1, 1) corresponds to the top-right corner of the near plane. |