Vertices of a polygon in the plane

### 24.5.13 Vertices of a polygon in the plane

The vertices or vertices_abc command finds the vertices of a polygon.

- vertices takes P, a polygon.
- vertices(P) returns a list of the vertices of P and draws them.

#### Examples

vertices(equilateral_triangle(1+i,3+i))

Individual vertices can be fetched by using the [] operator, like e.g.

C:=vertices(equilateral_triangle(1+i,3+i))[1]

which returns the second vertex.