Diagonaalid
Diagonaalid, or diagonals, are line segments that connect nonadjacent vertices within a polygon or polyhedron, or, in the context of matrices, elements that lie along the diagonals of a square array. The concept is used across several areas of geometry and linear algebra.
In a polygon with n vertices, the number of diagonals is n(n-3)/2. This counts all straight connections
Diagonals vary in length; given the coordinates of the vertices, the length of a diagonal is the
In three dimensions, a space diagonal connects two vertices that do not share an edge. For example,
In matrices, the main diagonal runs from the top-left to the bottom-right, containing the elements aii. Diagonals