Determine coordinates of points on a line with center and direction,
based on the distances from the center given in dist_center.
This works by using the vector formulation of the line equation assuming
direction is a \(n\)-dimensional unit vector. In other words,
considering \(\mathbf{d}=\) as.matrix(direction) (\(n \times
1\) vector), \(\mathbf{c}=\) as.matrix(center) (\(n
\times 1\) vector), and \(\mathbf{w}=\)
as.matrix(dist_center) (\(p \times 1\) vector), the coordinates
of points on the line are given by:
\[\mathbf{P}=\mathbf{1}\,\mathbf{c}^T + \mathbf{w}\mathbf{d}^T\]
where \(\mathbf{P}\) is the \(p \times n\) matrix of point coordinates on the line, and \(\mathbf{1}\) is a \(p \times 1\) vector with all entries equal to 1.
