Step 1: Draw a 3D Cartesian coordinate system.

Step 2: Grab math with the hand of God.