Created
June 29, 2009 04:31
-
-
Save eklitzke/137465 to your computer and use it in GitHub Desktop.
This file contains 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
-- The fields are position, speed. Speed is positive for clockwise rotation, | |
-- negative for counter-clockwise rotation | |
data Course = Course Point Double | |
-- time is the time to do the hohmann transfer, use the hohTime function, The first course it your course, the second course is the target;s | |
computeJump :: Double -> Course -> Course -> Maybe (Vector, Vector) | |
computeJump time (Course (xs, ys) vs) targ@(Course (xt, yt) vt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment