Skip to content

Instantly share code, notes, and snippets.

@compwron
Created March 1, 2015 21:46
Show Gist options
  • Save compwron/0b744617e41c439f798a to your computer and use it in GitHub Desktop.
Save compwron/0b744617e41c439f798a 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