transform triangle