How to draw perpendicular lines in cetz?

The new version of cetz (≥ 0.4.2) supports (project: pt, onto: (a, b)) or the short form (pt, "_|_", a, b) for projecting a point onto a line through two points.

5 Likes