OptionalframeOptionalpaddingHow far beyond its own outline this shape asks to be found, in units.
Not decoration: a hairline is a few tenths of a unit across, and a box drawn exactly around it
is a target nobody can hit. An edge pads its box by HIT_TOLERANCE on each side for
that reason, and by more again when it carries an arrow head, which is drawn outside the path it
belongs to and would otherwise fall outside the shape's own bounds.
It widens Geometry2d.bounds only. Edges, vertices and length stay the shape as drawn, so a crossing test is unchanged and only the "is it near enough" question moves — which is the one the padding is about.
The angle, in radians, of the frame this shape's tight box is measured in. Zero — axis-aligned — for a shape as it was built; whatever rotation it has been carried through afterwards.
It exists so a turned shape keeps a turned box rather than the axis-aligned one that contains it. The two differ by up to a factor of sqrt(2) on the diagonal, and Geometry2d.bounds feeds containment and overlap, so the looser box does not merely look wrong — it selects symbols a query never reached.