I am trying to understand the following introductory passage in an early lecture by the philosopher/mathematician Gottlob Frege because I am interested in how Frege conceived of the role of geometric intuition in mathematical reasoning.

One of the most far-reaching advances made by analytic geometry in more recent times is that it regards not only points but also other forms (e.g., straight lines, planes, spheres) as elements of space and determines them b means of coordinates. In this way we arrive at geometries of more than three dimensions without leaving the firm ground of intuition. The geometry of straight lines for example is a four dimensional one, and so is the geometry of spheres. But there is a difference between the two, in that a sphere can always be determined unequivocally by four numbers, whereas it would seem that this is not possible in the case of straight lines. we determine a straight line by an equation between six quantities with a quadratic equation holding between them. We express this peculiarity of the geometry of straight lines by calling it a second order one, whereas the geometry of spheres is of the first order.

The geometry of pairs of points in the plane, with which we will here be concerned, is four-dimensional and of the third order.

How are we to understand "dimension" and "order" in this passage? I guessed that the dimension is the number of coordinates required (six for lines) minus the order of the equation required to hold between the coordinates (two for lines). To get a better grip on the basic idea I worked the algebra on the equations for lines in three dimensional space.

$x = x_{0} + at$

$y = y_{0} + bt$

$z = z_{0} + ct$

So that:

$t = \frac{x - x_{0}}{a} = \frac{y - y_{0}}{b} = \frac{z - z_{0}}{c}$

And:

$abct^{3} = xyz - xyz_{0} - xy_{0}z + xy_{0}z_{0} - x_{0}yz + x_{0}yz_{0} + x_{0}y_{0}z - x_{0}y_{0}z_{0}$

Substituting the original equations into that, and doing a bunch of algebra, gives a quadratic in t with coefficients expressed in $x_{0}, y_{0}, z_{0}, a, b, c$. So I'm trying to make sense of Frege's description of the geometry of lines is dimension four and order two by thinking of the dimension as the number of coordinates minus the order of the equation required for those coordinates to characterize a line. But, I can't quite make that fit with what he says about the geometry of spheres.

Frege's early work in geometry is influenced by the analytic projective geometry in the style of Plucker, using homogeneous coordinates. I've consulted some internet sources and used the undergraduate textbook "Modern Geometries" to better understand homogeneous coordinates, but I have been unsuccessful finding definitions of dimension and order for this context. What does Frege mean by dimension and order in the above quotation?