Expand description
Plane geometry in plain numbers: where a tool places what it builds, and where the pointer meets the sketch. Only ever a free choice — a position the solver then makes exact, a suggestion of which piece of a curve is meant — never a result the kernel reasons about: what the sketch is is its design data, and what that means comes from its solver.
Enums§
- Plain
- A line, circle or arc in plain numbers: what intersections are found on, and where along it a point is.
Functions§
- add
- angle_
between - The counter-clockwise angle from
atob, in(-π, π]. - bounds
- The box around
points: its lowest corner and its highest, orNoneif there are no points. - cross
- The 2-D cross product
a.x b.y - a.y b.x: positive whereblies counter-clockwise ofa. - distance
- How far
ais fromb. - dot
- of
vin plain numbers.- perp
vturned a quarter counter-clockwise.- reflect
pmirrored across the line throughaandb.- rotate
vturned counter-clockwise byangle.- scale
- segments_
cross - Where the segments from
atoband fromctodcross, if they do. - sub
- sweep_
through - The signed sweep of the arc from
stoethroughp, by the inscribed angle theorem: counter-clockwise (positive) whenplies right of the chord. Not finite whenpis on the chord’s line. - swept
- The angle from
fromround toto, followed on fromprevious, the sweep it was before (none if zero): within half a turn of it, so that a sweep dragged round goes on past half a turn. - unit
ascaled to unit length, orNoneif it has no finite, non-zero one.- wrap
anglebrought into(-π, π].- xy
- Where the sketch point
pis drawn.
Type Aliases§
- P2
[x, y].