Calculates the area of a regular polygon.
// Returns 100const area = Chalkboard.geom.polygonA(4, 10, 5); Copy
// Returns 100const area = Chalkboard.geom.polygonA(4, 10, 5);
The number of sides
The side length
The apothem length
Calculates the area of a regular polygon.
Example