return if triangle