Given 2 points $p_1=(x_1^1, x_2^1, ..., x_n^1)$ and $p_2=(x_1^2, x_2^2, ..., x_n^2)$ in $n$-dimensional Euclidean space, how would you define the straight-line from $p_1$ to $p_2$ with these 2 points being the endpoints of the line.
There are a few of things I've been completely unable to figure out. One is the slope of the line, and the other is how to define the line such that it has endpoints.
For now, I've only attempted to do this as a Cartesian equation with a number of inequality conditions which I feel could be more complex than necessary. If there are alternative methods of defining a line I will be happy to see that.
You can use a parametric representation: $p_1+(p_2-p_1)t$, $t\in[0,1]$. Slope doesn't make sense in more than 2 dimensions, instead one may consider the direction cosines.