void ComputePositionOffsets(float &fXOffset, float &fYOffset) { const float fLoopDuration = 5.0f; const float fScale = 3.14159f * 2.0f / fLoopDuration; float fElapsedTime = glutGet(GLUT_ELAPSED_TIME) / 1000.0f; float fCurrTimeThroughLoop = fmodf(fElapsedTime, fLoopDuration); fXOffset = cosf(fCurrTimeThroughLoop * fScale) * 0.5f; fYOffset = sinf(fCurrTimeThroughLoop * fScale) * 0.5f; }for the rotation of the triangle won't work for some reason. The xOffset is always .5 and the yOffset always 0. So since I can't get the current location for x or for y or x' or y', I need to find a way to calculate the offset of the rotation.

This post has been edited by **dartoscoder**: 06 July 2012 - 02:44 PM