local X1,Y1,X2,Y2 =
--CHANGE THE NUMBERS BELOW
-5, -7 --X, Y
,
-4, -4 --X, Y
--DONT CHANGE BELOW
local function getSlope(point1, point2)
local y1, y2 = point1[2], point2[2];
local x1, x2 = point1[1], point2[1];
return (y2 - y1) / (x2 - x1);
end;
print("POINT1: " .. tostring(X1) .. ", " .. tostring(Y1));
print("POINT2: " .. tostring(X2) .. ", " .. tostring(Y2));
print("\nSLOPE: ", getSlope({X1,Y1}, {X2,Y2}))