Straight Line ⁄

Definitions:
  • x1: x1-coordinate
  • x2: x2-coordinate
  • y1: y1-coordinate
  • y2: y2-coordinate
  • m: Slope
  • b: y-intercept
  • f:
  • y: Equation
Layer 1 x x y y 1 1 2 2

Slope Formula

\(m=(y2-y1)/(x2-x1)\)
m = Slope
y2 = y2-coordinate
y1 = y1-coordinate
x2 = x2-coordinate
x1 = x1-coordinate

Layer 1 x x y y 1 1 2 2 b

Main Form

\(y=m * x + b + (0+0)\)
y = Equation
m = Slope
b = y-intercept
\(y=((y1-y2)/(x1-x2)) * x + y2-((y1-y2)/(x1-x2))*x2\)
y = Equation
y1 = y1-coordinate
y2 = y2-coordinate
x1 = x1-coordinate
x2 = x2-coordinate
\(y=m * x + y2 - m * x2\)
y = Equation
m = Slope
y2 = y2-coordinate
x2 = x2-coordinate
\(y=m * x + y1 - m * x1\)
y = Equation
m = Slope
y1 = y1-coordinate
x1 = x1-coordinate

Point Slope Form

\(f=\"y-\"+(y1)+\" = \"+((y1-y2)/(x1-x2))+\"*(x-\"+(x1)+\")\"\)
f =
y1 = y1-coordinate
y2 = y2-coordinate
x1 = x1-coordinate
x2 = x2-coordinate