How does it work?

Mathemagics!  There’s a bit of info on the geometry that makes PoleClinometer work on the design page.