Accidently I created this nice colored effect on my LaTeX TOC: http://i43.tinypic.com/o5aptl.png Which I like and want to keep, I created this effect like this:
Given a starting point, a heading, a distance, and a line segment, find the first point along this heading that is the specified distance away from this line segment.