1.2.1 · D3Basic Geometry

Worked examples — Points, lines, line segments, rays — notation and differences

2,901 words13 min readBack to topic

This is the parent topic's workshop page. The parent taught you the four objects (point, line, ray, segment) and their parametric formulas. Here we do nothing but worked examples — one for every kind of situation the topic can throw at you, so that no exam question ever surprises you.

We will lean on the parametric idea a lot, so let us pin it down in one picture before anything else.

Figure — Points, lines, line segments, rays — notation and differences

Read the figure above: the dashed cyan track is the full line (every ), the solid cyan portion is the ray (only , forward from ), and the thick amber piece is the segment (only , trapped between and ). Notice the labelled dots: sits at , at , the cyan dot at lies past (on ray and line but off the segment), and the cyan dot at lies behind (on the line only). That single picture is the whole page in miniature — every later example is just choosing a cage for .

Here means "subtract matching coordinates": if and then . This little arrow is called the direction vector — it is literally "how far right, how far up" you travel to get from to . (More on arrows in Vectors.)


The scenario matrix

Every question about these objects lands in one of the cells below. The last column tells you which worked example covers it.

Cell What makes it tricky Covered by
A. Read the notation one arrow vs two vs a bar Ex 1
B. Direction has negative signs vector pointing left / down Ex 2
C. Is a point ON the object? check the slider value Ex 3
D. Degenerate: zero direction vector Ex 4
E. Vertical / horizontal one coordinate never changes Ex 5
F. Order matters? vs vs Ex 6
G. Real-world word problem laser / walkway modelling Ex 7
H. Exam twist / limiting case segment "grows into" a ray Ex 8
I. Three points — do they line up? shared direction vector Ex 9

Prerequisite links you may want open: Distance Formula, Coordinate Geometry, Colinear Points, Midpoint Formula.


Worked examples


Figure — Points, lines, line segments, rays — notation and differences

Read the figure above: the amber arrow is leaving the endpoint and pointing up and to the left — that is what the negative first entry buys us. The cyan ray marches in that same up-left direction: appears at and the cyan dot at sits even further along, confirming the ray never turns around.




Figure — Points, lines, line segments, rays — notation and differences

Read the figure above: the dashed cyan line runs straight up through — its never budges, which is the visual meaning of a "frozen" first coordinate. The thick amber segment lies flat at ; the double-headed arrow between and marks off the units of length. One picture, both special cases.






Recall Quick self-test (reveal after answering)

The slider for a segment is restricted to which range? ::: and — equal or not? ::: Not equal (opposite endpoints and directions) A point gives on line . On the segment ? ::: No, because If , what does collapse to? ::: A single point (zero direction vector) Length of the horizontal segment from to ? :::