How do I make the pattern angle match the direction of the brushstroke?
Craig D Jones is almost right, the answer is Rake.

Both sculpting and UV painting both have the same option that will do what I'm looking for. 
The Rake option when checked makes the pattern follow the brush direction.