Suppose we want to find a relational description
for the line through two given points
and
. There is a particular choice of
that
does this nicely. It can be derived in either of two ways.
For the first way, take any third point , and
recall the affine transformation that takes the standard
triangle to
. Let the determinant of its
extended matrix be
. By adding the third
row to the first two, we get a simpler description. Thus
.
Here are some facts about
. You
have seen the first three; the last two follow from (a).
Proposition 1. For any points in
R
:
(a) the area of the triangle formed by
is
in absolute value;
(b) if
then
have the same orientation as the standard triangle, namely,
as you go from
to
to
and back to
you are traversing the triangle counterclockwise;
equivalently,
is to the left of
as seen
from
, just as
is to the left of
as seen from the origin;
(c) similarly, if
, then the
traversal
to
to
to
is
clockwise; equivalently,
is to the right of
as seen from
;
(d)
when
are
collinear (lie on a line) and so form only a degenerate
triangle of zero area;
(e)
(i.e.,
doesn't
change when the three points are permuted cyclically).
By (d), the points for which
form the line we're looking for.
To emphasize which point is varying, let's put
x
for
:
Proposition 2. The line in
R
through
two points
and
has equation
x
.
Let's call this the two-point relational form of
. To see that the function
x
is
really affine, expand
x
by cofactors of
the third row; you get
x
.
The second way of deriving the two-point relational
form is to use and
to make a normal to the
desired line
:
For the the normal use rotated
counterclockwise
. Thus if
and
, let
.
Since
is on
,
, so
. Thus our affine function
is
, as before.
Note 1. From the second method of deriving the two-point
relational form, it is clear that if you walk along the line
from
towards
, the half-plane with
x
will be on your left. This is also
clear from (b) of Proposition 1, if you put
x
again.
Note 2. Because the two-point relational form does not involve division, it is especially good for use in a computer without built-in floating-point operations, if you use only integers for coordinate values of points.