toEci method

Convert this ECF to ECI.

Implementation

EarthCenteredInertial toEci(Angle gmst) {
  // ccar.colorado.edu/ASEN5070/handouts/coordsys.doc
  //
  // [X]     [C -S  0][X]
  // [Y]  =  [S  C  0][Y]
  // [Z]eci  [0  0  1][Z]ecf
  //
  var dx = x * cos(gmst.radians) - y * sin(gmst.radians);
  var dy = x * sin(gmst.radians) + y * cos(gmst.radians);
  var dz = z;

  return EarthCenteredInertial(dx, dy, dz);
}