In a convex polygon, all diagonals will occur in the interior of the polygon, as illustrated the the example below left.

In a concave polygon, NOT all diagonals (or all of a diagonal) will occur in the interior of the polygon, as illustrated the the example above right.
 Image onlyInstructions text as in global.js
Image onlyInstructions text as in global.js