Created
January 30, 2012 02:45
-
-
Save bil-bas/1702157 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
def pitch(angle) | |
a = angle.degrees_to_radians | |
@velocity = Matrix[[Math::cos(a), -Math::sin(a)], [Math::sin(a), Math::cos(a)]] * @velocity | |
end | |
def pitch_up; pitch 3; end | |
def pitch_down; pitch -3; end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment