Rectangle Diagonal Calculator
Compute rectangle diagonal from width w and height h using d = √(w² + h²).
📐 计算公式
矩形对角线与要素(本页代码口径):对角线 d=√(宽²+高²);面积=宽×高;周长=2×(宽+高);两对角线夹角=2×atan(宽高较小者÷较大者)×180÷π(°)。校验:两项输入空值/非法值即提示并中止。判据:无固定分级,正方形时夹角为 90°、越扁夹角越小;对角线相互平分且相等。
矩形对角线长度。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Rectangle diagonal | d = √(w² + h²) | Pythagorean theorem |
| Area | A = w·h | Rectangle area |
| Perimeter | P = 2(w + h) | Rectangle perimeter |
| Screen sizing | Inches measure the diagonal | Display industry |
| Aspect ratio | 16:9 and 4:3 common | Display standards |
| Units | Consistent length units | Dimensional rules |
📌 计算说明
- d = √(w² + h²)。
- 3×4 矩形对角线 5。