geometry

Import it with @use:geometry, then call its constructs under that name.

@use:geometry

Constructs

geometry.triangle-abc
A triangle from its three vertices, with the corners lettered. The letters are what this is for: polygon draws the outline in one line already, and then every figure wants three dots and three letters placed beside them without landing on the sides. Each letter is a point's label, so the graph's own label layout keeps it clear of the ink.
a-label
inline
content all
Default$A$
b-label
inline
content all
Default$B$
c-label
inline
content all
Default$C$
fill
bool
Defaultfalse
opacity
min 0, max 1
Default1
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultblue
geometry.right-triangle
A right-angled triangle standing on its corner, the square marked and each side labelled — the figure trigonometry is taught on. The legs are LENGTHS rather than opposite corners: a runs right from the corner and b runs up from it, so the right angle is where the two meet and cannot be put anywhere else. The sides are drawn as three segments rather than as one polygon because each one carries a label, and a label belongs to the side it names.
a-label
inline
content all
Default$a$
b-label
inline
content all
Default$b$
c-label
inline
content all
Default$c$
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultblue
geometry.pythagoras
The Pythagoras figure: a right triangle with a square drawn outward on each of its three sides, each square labelled with its area. The hypotenuse's square is the one nobody wants to work out by hand. Its far corners are the near ones displaced by the hypotenuse turned a quarter turn — (a,b)(-a, b) becomes (b,a)(b, a) — which is why the figure comes out as four coordinates and not as a construction.
a-label
inline
content all
Default$a^2$
b-label
inline
content all
Default$b^2$
c-label
inline
content all
Default$c^2$
a-colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultblue
b-colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultgreen
c-colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultorange
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultneutral
geometry.regular-ngon
A regular polygon of any number of sides, about a centre. Drawn side by side with @for, because a series is text the compiler reads in one piece and a loop generates elements rather than entries: the last side closes the shape because its far corner is the turn come all the way round. turn rotates the whole figure — a square at 45° stands on a corner, and at 0° it sits flat.
sides
class integer, min 3
Default6
Default3
Default0
width
min 0
Default2
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultpurple
geometry.midpoint
The point halfway between two others, lettered, with the segment it halves drawn behind it. The segment is drawn as its two HALVES so that ticks can mark them equal: one tick on each is the notation for "these two lengths are the same", and it is the whole reason a midpoint is worth marking rather than stating.
ticks
class integer, min 0, max 3
Default1
label
inline
content all
Default$M$
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultteal
geometry.perpendicular-bisector
A segment, its midpoint, and the perpendicular bisector through it — the locus of the points equidistant from the two ends. The bisector runs length either side of the midpoint along the segment's normal, which is the segment turned a quarter turn and divided by its own length. Written out that division is the whole construct: it is what keeps the arms the length they were asked for however long the segment is.
Default2
label
inline
content all
Default
dashed
bool
Defaulttrue
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultgrey
bisector-colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultred
geometry.circle-arc
An arc of a circle, from one bearing to another, both in degrees anticlockwise from the right. A parametric curve rather than a run of points: the arc is exact at every zoom, and there is no vertex count to pick. filled shades what the arc encloses on its own, which is the SEGMENT of the circle — the piece the chord between its ends cuts off. The slice from the centre is sector, because that region closes somewhere else. circle-arc rather than arc because a define may not take a library node's name, and arc is one — the great-circle overlay on the geo canvas.
Default3
Default0
width
min 0
Default2
filled
bool
Defaultfalse
label
inline
content all
Default
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultteal
geometry.sector
A sector: the arc between two bearings and the two radii that close it, with the angle at the centre marked. filled shades the slice. The arc is drawn here rather than handed to circle-arc for exactly that reason: a sector's region closes through the CENTRE, and an arc left to itself closes across its own chord — which is a different shape and a different piece of the circle.
Default3
Default0
width
min 0
Default2
filled
bool
Defaultfalse
label
inline
content all
Default$\theta$
show-value
bool
Defaultfalse
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultteal
geometry.circle-radius
A circle with its centre dotted and one radius drawn out to a bearing, labelled. size on the circle mark IS the radius, so the segment ends exactly on the circumference — which is the one thing a hand-written version of this figure tends to get wrong.
Default3
label
inline
content all
Default$r$
filled
bool
Defaultfalse
dashed
bool
Defaultfalse
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultgrey
radius-colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultteal
geometry.tangent
A tangent touching a circle at a bearing, with the radius to the point of contact and the right angle between them — the circle theorem, drawn.
Default3
Default3
filled
bool
Defaultfalse
label
inline
content all
Default$T$
radius-label
inline
content all
Default$r$
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultgrey
tangent-colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultred
geometry.unit-circle-point
The unit circle with one angle taken round it: the radius to the point, the cosine along the axis and the sine standing on it, each in its own colour. The two legs are what the figure is for — cosθ\cos\theta is the distance across and sinθ\sin\theta the distance up, and drawn in different colours they stop being two entries in a table.
Default1
label
inline
content all
Default$P$
angle-label
inline
content all
Default$\theta$
cos-label
inline
content all
Default$\cos\theta$
sin-label
inline
content all
Default$\sin\theta$
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultblue
cos-colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultorange
sin-colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultgreen
geometry.parallel-cut
Two parallel lines cut by a transversal, with the corresponding angles marked at both crossings — the figure every angle rule is read off. The lower line is y=0y = 0 and the upper is y=y = gap; the transversal crosses the lower one at the origin and the upper one gap / tan along, which is where the second angle is marked. Both angles are measured from the same direction and labelled the same, because that is the claim the picture makes.
Default55
Default10
label
inline
content all
Default$\theta$
colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultgrey
cut-colour
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Defaultpurple