toEcf method

Converts this ECI object to ECF.

Implementation

EarthCenteredEarthFixed toEcf(double gmst) {
  double x = this.x * cos(gmst) + this.y * sin(gmst);
  double y = this.x * (-sin(gmst)) + this.y * cos(gmst);

  return EarthCenteredEarthFixed(x, y, z);
}