Okay, cool - so a quick review.
To flip an image about the vertical axis, you might let all x-points just become negative x, as in: x -> -x
Similarly to flip an image along the horizontal axis, you would have y -> -y.
Of course, you can do both, etc. etc. - and this is what paint lets you do with one click basically.
... So rotations are a little bit harder, and involve changing coordinates like reflections. Now, for maptriangle, you have to feed it three points. I don't want to confuse things, so we'd better stick to rotating one point. To finish the job we will apply the methods of one point to all three and boom, you're rotating the whole triangle.
Unfortunately, there are three ways to get you into rotations: (i) vectors, (ii) trig functions, (iii) butcher a working example. While various people will see this post and probably get right to work on (iii) (or I will later if nobody does)... how is your proficiency with (i) and (ii)?