Adobe interview question

How do you sample a triangle?