static apothem(r, n) {
    return r * Math.cos(Math.PI / n);
  }
Returns the apothem of a regular n-sided polygon based on its radius.

@static
@param {Number} r The radius.
@param {Number} n The number of edges of the regular polygon.
@returns {Number} The apothem of a n-sided polygon based on its radius.