where:


Given two points
and
on the line, we can write that:
in order to determine
,
and
.
where
is the slope:
where
is the angle between the line and the
axis.
can also be expressed parametrically as:
where
are the components of the points
and
of the line.
Given two points
and
and a connecting line
, the point-intercept form of the line is given by:
where
is the slope of the line.
In parametric form:
where:
is a generic point on the line.
is the starting point of the line segment.
is the end point of the line segment.
is a parameter with
where by taking values and working out the equation yields points on the line.
Knowing the components of two points
and
, we can determine the midpoint
of the segment
whose components are: