Vector from a group of points

I’m wondering how can i create a vector from a group of points.
for example, I have a bunch of points that kind of represents a rectangle, and I’d like to create the vector of the red arrow,

How about Fit Line?

1 Like