rotating a triangle