### rotating a triangle

Posted:

**Fri Dec 07, 2007 6:52 pm**Part of the game im creating uses lines to create a ship, in the shape of a triangle. What I was planning on doing, was use a center point, then draw the 3 edges of the triangle relative to the center, with the top point in the direction that the 'ship' is facing. I believe I could use cos and sine to get the direction, and move the points to the correct positions. What my problem is, is that I have no idea how to do this. My understanding of cos and sine is limited, so could anyone give me a hand? Give me an example, formula, or a suggestion? Any help would be seriously appriciated. Thanks.