Original Post
I would have searched for this, but I am unsure of the terminology. I want to convert distance from pixel coordinates to relative coordinates. Relative coordinates I define to be coordinates relative to a (0, 0, 0) point in 3D space(for example, the coordinates found in a VertexBuffer using CustomVertex.PositionColored vertices). Pixel coordinates would be relative to the upper left corner of a window. What I need to do is take a line in pixels, whose distance is easy to compute, and then convert the distance to relative coordinates. More visually, imagine a 3D world, which is viewed from the very top, so you only see one plane, the ground plane. You want to measure the distance between two points on the plane you see. You can draw a line on the screen in pixels, but how to do you convert that to the distance in relative coords, or, alternately, can you determine the bounds(up, down, left and right) in relative coordinates of your view?