Any polygons, other than triangles, have hidden edges breaking their surface in order to triangulate them. So, if you have a rectangle, what you have in fact are two triangles welded together with the diagonal that divides them hidden. This diagonal, even though may be invisible to you, is still important for calculating…