Function check_regular_polygon
Source pub fn check_regular_polygon(atoms: &[&Atom]) -> bool
Expand description
Checks if a sequence of atoms are vertices of a regular polygon.
§Arguments
atoms
- A sequence of atoms to be tested.
§Returns
A flag indicating if the atoms form the vertices of a regular polygon.
§Panics
Panics if atoms
contains fewer than three atoms.