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