A defined projection, with a defined datum
Set the opening datum at the hinge side and the opposite stop to its right. The closed door rectangle occupies x = 0–width, y = 0–thickness in its local system; the pivot lies at local (px, py). Its world x-position is the supplied nonnegative offset from the hinge-side datum. Opening rotates counterclockwise, 0–90°.
Project the furthest door corner
Door projection = axis offset + (width − px) cosθ + py sinθ
Remaining span = max(0, opening span − door projection)
This gives the contiguous span to the right of the full door projection, not a traversal analysis through arbitrary three-dimensional obstructions. At angles below 90°, it uses the full plan projection rather than claiming the prescribed regulatory measurement.
Independent example and measurement context
For a 36 in opening and leaf, thickness 1.75 in, pivot (0,1.75) in, zero axis offset and 90°, the projection is 1.75 in and remaining span 34.25 in. At 0° the same leaf projects 36 in and leaves zero. At 90°, the Access Board describes clear width measurement from the stop to the door face. The actual door face, stop, hardware projections, and required measurement conditions must be checked on the installed assembly.
The tool displays three-decimal numerical results. Pivot coordinates outside the leaf, nonpositive dimensions, or angles above 90° are rejected. It does not issue a width pass/fail, maneuvering-clearance result, or ADA/egress compliance conclusion.