Rotating Triangle

PreCalculus Contest Type Problem