Skip to content

Instantly share code, notes, and snippets.

@HopperMCS
Created May 2, 2017 18:12
Show Gist options
  • Save HopperMCS/117ce800c8792d03a2c77b63a71811db to your computer and use it in GitHub Desktop.
Save HopperMCS/117ce800c8792d03a2c77b63a71811db to your computer and use it in GitHub Desktop.
null created by mgagemorgan - https://repl.it/HcOa/0
"""
(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(x1, y1, x2, y2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment