Find the Line Passing Through the Middle of Two Points
Edgar Programmator Edgar Programmator
2.49K subscribers
117 views
6

 Published On Sep 11, 2023

In this video, I will show you how to find the line passing through the middle of two points. This is a simple math concept that can be used in many different applications. I will walk you through the steps of the midpoint formula, and I will also show you how to find the midpoint graphically.

First method:

A(x1, y1)
B(x2, y2)

y = mx + b

m = (x1 - x2) / (y2 - y1)
b = (y2^2 - y1^2 + x2^2 - x1^2) / (2(y2 - y1))

Second method:

A(x1, y1)
B(x2, y2)

ax + by + c = 0

a = x2 - x1
b = y2 - y1
c = x0(x1 - x2) + y0(y1 - y2)


  / edgardocpu  

show more

Share/Embed