So, the equation for a line is:
Y = mX + b
Where m is the slope factor, and b is the axis intercept.
To calculate the slope m,
Where A is the camera and B is the star.
To calculate axis intercept b, it's this:
(x and y are the coordinates of any point on the line)
The intercept is what I need to use for the drawn position of the star, I think.
Oh, also, rather than X and Y, I'd use X and Z, followed by Y and Z.
Therefore, it follows that...
StarX[i] = SetStarZ[i] - (((GetCameraX() - SetStarX[i]) / (CameraZ - SetStarZ[i])) * SetStarX[i])
StarY[i] = SetStarZ[i] - (((GetCameraY() - SetStarY[i]) / (CameraZ - SetStarZ[i])) * SetStarY[i])
Still 2 lines, but this should work better, hopefully...