Calculates the perimeter of a regular polygon.
// Returns 40const perimeter = Chalkboard.geom.polygonP(4, 10); Copy
// Returns 40const perimeter = Chalkboard.geom.polygonP(4, 10);
The number of sides
The side length
Calculates the perimeter of a regular polygon.
Example