Created
January 27, 2015 16:00
-
-
Save compwron/a8dcac0c7f8a3779eb60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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