decoposing in two types of triangles