Triangle logic completed