Every bolt circle question reduces to one piece of circle geometry: holes evenly spaced on a diameter are chords of that circle, and chord length follows only from the angle between the holes. Three formulas cover every practical case.
Forward: BCD to coordinates
X = R·sin(θ) · Y = R·cos(θ) · θᵢ = start + i·(360°/n)
Reverse: adjacent chord to BCD
BCD = c / sin(180°/n)
Reverse: across-holes reading to BCD
BCD = M / cos(90°/n) for odd n · BCD = M for even n
Work one by hand to check the tool: a 4-hole pattern with 70.7 mm between adjacent hole centers gives BCD = 70.7 / sin(45°) = 100.0 mm, and each hole sits 90° apart, so with a start angle of 0° the coordinates are (0, 50), (50, 0), (0, −50), (−50, 0) mm. Run the same numbers above and the table matches to the last digit.
The step angle is the whole reason patterns are easy to generate and hard to measure: dividing 360° by any hole count is trivial, but recovering that angle from a physical part forces you through a chord, and chords contract fast as the count rises — adjacent holes on an 8-hole 100 mm circle sit only 38.3 mm apart, where a 1 mm measuring error already costs 2.6 mm of inferred diameter. High hole counts demand the widest chord you can reach, not the most convenient one.