Skip to content

Instantly share code, notes, and snippets.

@HopperMCS
Created May 2, 2017 18:21
Show Gist options
  • Save HopperMCS/5b18ba58b3ad7f80dbabae606aeff091 to your computer and use it in GitHub Desktop.
Save HopperMCS/5b18ba58b3ad7f80dbabae606aeff091 to your computer and use it in GitHub Desktop.
null created by mgagemorgan - https://repl.it/HcOa/2
"""
(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