Doh! I was looking at steps but not in the right directions.
That's what I did (since I couldn't remember it clearly enough), and when I couldn't figure it out in 20 seconds or so I gave up and continued with a 2D approach using N=[0,-1], NE=[1,-0.5], SE=[1,0.5], and then similar calculations as Oaky above.
At the time I'm not interested in the perfect solution, I'm (personally) only interested in doing it quickly and without looking anything up. Other approaches are available. But afterwards it is interesting to see the other (often better) approaches.