This chapter develops the mathematics that describe lines and planes in three-dimensional space, and it discusses topics such as finding the intersection of two such entities and calculating the distance between them. We then introduce the view frustum and examine some of the important mathematics governing the virtual camera through which we see our game universe.
Given two 3D points P and P2, we can define the line that passes through these points parametrically as
where the parameter t ranges over all real numbers. The line segment connecting P1 and P2 corresponds to values of ...