orbits-lib/resources/orbits/orbit.rb
##### to_s
# The format of to_s appears strange, but its the same representation
# used by the Java code, so it helps in debugging.
to_s
The format of to_s appears strange, but its the same representation
used by the Java code, so it helps in debugging.
to_s The format of to_s appears strange but its the same representation used by the Java code so it helps in debugging .
def to_s
      inflection_diffs = [-swath_width_rad / 2, 0, swath_width_rad / 2]
      inflections = inflection_diffs.map {|d| ((max_orbit_phi + d) * 180 / PI).round(3)}
      "Orbit with inflections #{inflections.inspect}"
    end
def to_s inflection_diffs = [ - swath_width_rad / 2 , 0 , swath_width_rad / 2 ] inflections = inflection_diffs . map { | d | ( ( max_orbit_phi + d ) * 180 / PI ) . round ( 3 ) } "Orbit with inflections #{inflections.inspect}" end
to_s
The format of to_s appears strange, but its the same representation
used by the Java code, so it helps in debugging.
to_s The format of to_s appears strange but its the same representation used by the Java code so it helps in debugging .