setEarthRadius method

void setEarthRadius (
  1. double earthRadius
)

A method that allows setting the earth's radius.

@param earthRadius the earthRadius to set in KM

Implementation

void setEarthRadius(double earthRadius) {
  this._earthRadius = earthRadius;
}