Skip to content

Instantly share code, notes, and snippets.

@compwron
Created January 27, 2015 16:00
Show Gist options
  • Select an option

  • Save compwron/a8dcac0c7f8a3779eb60 to your computer and use it in GitHub Desktop.

Select an option

Save compwron/a8dcac0c7f8a3779eb60 to your computer and use it in GitHub Desktop.
class OrbitalCoordinate
def initalize(lat, long, altit)
@lat = lat
@long = long
@altit = altit
# @veloc = veloc # meters per second
# how many seconds it will take to get to another point.
OrbitalVelocity..new(sec, OrbitalCoordinate)
end
end
class VelocitalOrbitalCoordinate
def initalize(lat, long, altit, next_lat, next_long, next_altit, sec)
@lat = lat
@long = long
@altit = altit
@veloc = OrbitalVelocity.new(sec, OrbitalCoordinate.new(next_lat, next_long, next_altit)) # how many seconds it will take to get to another point.
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment