Examine all four measured corners
Equal diagonals alone do not establish a rectangular frame. An isosceles trapezoid can have equal diagonals while its corners are not right angles. This tool instead uses four measured coordinates to calculate the interior angles, following side lengths, and both diagonals of the outline you supply.
Measure all four corners in one plane and one coordinate reference. Enter them in order around the perimeter, starting at any corner and proceeding either clockwise or counterclockwise. Do not list opposite corners consecutively. Identify the plane, origin, and positive axis directions so the points describe the intended frame reference, such as the clear-opening corners at the leaf plane.
Lengths and angles from coordinates
For two points separated by Δx and Δy, the distance is √(Δx² + Δy²). At each corner, the two vectors toward its neighbors define the interior angle. The calculation uses the magnitude of their cross product and their dot product:
Interior angle = atan2(|a × b|, a · b)
Right-angle departure = interior angle − 90°
The largest absolute departure identifies the most oblique corner among the four entered points. It is an angle measurement, not a pass/fail result. The tool has no default squareness tolerance.
Rectangle and equal-diagonal counterexample
For corners (0,0), (36,0), (36,80), (0,80) in, every interior angle is 90°. The side lengths alternate 36 and 80 in. Both diagonals are √7696, approximately 87.727 in = 2,228.262 mm. The largest right-angle departure is 0.000°.
Now consider the hypothetical outline (0,0), (4,0), (3,2), (1,2) in:
| Quantity | Expected geometry |
|---|---|
| Both diagonals | √13 in, approximately 3.606 in |
| Bottom two interior angles | Approximately 63.435° each |
| Top two interior angles | Approximately 116.565° each |
| Largest absolute right-angle departure | Approximately 26.565° |
The equal diagonals in the second case coexist with substantially non-square corners. This is why diagonal equality is not used as an installation approval.
What four points leave out
The input must form a convex quadrilateral. Crossed, concave, repeated, and collinear-corner outlines are rejected. Coordinates are limited to ±1 billion inches as a software bound. Inches accept signed fractions; millimeters accept signed decimals.
Measured corner positions do not establish that the edges between them are straight, that the frame is plumb, or that all actual corners lie in one plane. An out-of-plane twist requires additional measurements. Errors in locating a corner also affect the derived angles and lengths.
Results are numerical approximations displayed to three decimals; no display value creates a tolerance. Compare the measurements with the actual door and frame requirements. If a usable rectangular opening and explicit gaps have been established, door leaf dimensions performs that separate dimension-chain task. The relationships above follow elementary Cartesian distance and vector-angle geometry; References provides the unit basis.