Created
May 2, 2017 18:21
-
-
Save HopperMCS/5b18ba58b3ad7f80dbabae606aeff091 to your computer and use it in GitHub Desktop.
null created by mgagemorgan - https://repl.it/HcOa/2
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
| """ | |
| (304, 270) | |
| (311, 380) | |
| (252, 326) | |
| Current slopes needed: | |
| (304, 270)(311, 380) -> Side 1 | |
| (311, 380)(252, 326) -> Side 2 | |
| (252, 326)(304, 270) -> Side 3 | |
| Side 1 | |
| x1 = 304; | |
| x2 = 311; | |
| y1 = 270; | |
| y2 = 380; | |
| """ | |
| def slope(x1, y1, x2, y2): | |
| y = y2 - y1; | |
| x = x2 - x1; | |
| print "(" + str(x) + "," + str(y) + ")"; | |
| slope(304, 270, 311, 380); | |
| slope(311, 380, 252, 326); | |
| slope(252, 326, 304, 270); | |
| """ | |
| (7,110) | |
| (-59,-54) | |
| (52,-56) | |
| """ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment