triangle rotate example