Title: A Programmer's Guide to Segment Geometry