Library/Geometry/Plane geometry/Vectors/Vectors of polygon sides

Vectors of polygon sides

Overview
Important

Given a polygon with vertices A1,A2,...,AnA_1, A_2, ..., A_n in order, the vector of the side from AiA_i to Ai+1A_{i+1} is AiAi+1=Ai+1Ai\vec{A_iA_{i+1}} = \overrightarrow{A_{i+1}} - \overrightarrow{A_i}, where Ai\overrightarrow{A_i} is the position vector of AiA_i.

Important properties

  • The sum of all side vectors of a closed polygon is the zero vector: A1A2+A2A3+...+AnA1=0\vec{A_1A_2} + \vec{A_2A_3} + ... + \vec{A_nA_1} = \vec{0}.

  • Each side vector shows both the length and the direction from one vertex to the next.

  • Side vectors can be used to calculate perimeter, check if a polygon is closed, and find other properties.