Triangle manipulation and composition