linking number

two closed loops, one threaded through the other. drag the slider to deform it. the integer never changes.
crossings say ? · gauss integral says ?
lk = half the sum of signed crossings in a 2d projection. each crossing is +1 or −1 by the right-hand rule (which strand is on top × its direction). it's a knot invariant: no amount of wiggling changes it, because every wiggle can be undone by a Reidemeister move that leaves the sum fixed. this pair is locked at lk = −1 (a mirror hopf link; the sign is just a convention for which way the strands wind).

the gauss integral is the same number without any projection: sample both curves in 3d and add up (rA−rB)·(drA×drB)/|rA−rB|3 over every pair of little steps, times 1/4π. it doesn't know where the camera is, and it still lands on the same integer — that's the honest version of "the linking number is a property of the curves in space, not of the drawing."