What a parallelogon is
A parallelogon is a convex polygon that tiles the plane by translations alone, with no turning. Only two kinds exist: parallelograms and hexagonal parallelogons. This calculator is for the hexagonal one: a convex hexagon \(ABCDEF\) whose opposite sides are equal and parallel, \(AB=DE=a\), \(BC=EF=b\), \(CD=FA=c\). Such a hexagon is centrally symmetric: its three long diagonals \(AD\), \(BE\), \(CF\) cross at their common midpoint, and opposite angles are equal, \(B=E\), \(C=F\), \(D=A\). The regular hexagon is the most symmetric example.
Enter the three side lengths with the angles \(B\) (between \(a\) and \(b\)) and \(C\) (between \(b\) and \(c\)), or the coordinates of four consecutive corners \(A, B, C, D\) (the other two follow by symmetry). The calculator returns the area, the perimeter, the three distinct angles, the three long diagonals and the three distinct short diagonals. It refuses angles with \(B+C\le 180^{\circ}\) (the third angle would be \(180^{\circ}\) or more) and corner points that do not make a convex hexagon. Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable. The page shows up to six decimal places, and writes a value below 0.0000005 or of 1015 and more as its full decimal. Every length must be from 0.000001 to 1,000,000,000; each coordinate from -1,000,000,000 to 1,000,000,000; anything outside is refused with a message naming the range.
Derivation
Write the sides as vectors \(\vec u=\overrightarrow{AB}\), \(\vec v=\overrightarrow{BC}\), \(\vec w=\overrightarrow{CD}\); the hexagon then runs \(\vec u,\vec v,\vec w,-\vec u,-\vec v,-\vec w\). The angles at three consecutive corners make one full turn:
$$B+C+D=360^{\circ},\qquad E=B,\quad F=C,\quad A=D.$$The hexagon cuts into three parallelograms spanned by pairs of side vectors, so its area is
$$K=|\vec u\times\vec v|+|\vec v\times\vec w|+|\vec u\times\vec w|=ab\sin B+bc\sin C+ca\sin D,$$ $$P=2(a+b+c),\qquad AD=|\vec u+\vec v+\vec w|,\quad BE=|\vec v+\vec w-\vec u|,\quad CF=|\vec w-\vec u-\vec v|,$$ $$AC=|\vec u+\vec v|,\quad BD=|\vec v+\vec w|,\quad CE=|\vec w-\vec u|.$$The opposite short diagonals are equal: \(DF=AC\), \(EA=BD\), \(FB=CE\).
Worked example
The page opens with \(a=6\), \(b=4\), \(c=5\), \(B=130^{\circ}\), \(C=110^{\circ}\), so \(D=120^{\circ}\):
$$K=24\sin130^{\circ}+20\sin110^{\circ}+30\sin120^{\circ}\approx 18.385067+18.793852+25.980762=63.159681.$$The perimeter is 30. The long diagonals are \(AD\approx 9.567372\), \(BE\approx 9.477711\), \(CF\approx 11.143294\), and the short ones \(AC\approx 9.102407\), \(BD\approx 7.394647\), \(CE\approx 9.539392\).
FAQ
Why must angles B and C add up to more than 180°?
The third angle is \(D=360^{\circ}-B-C\). For a convex hexagon it must be less than \(180^{\circ}\); at exactly \(180^{\circ}\) the hexagon flattens into a parallelogram.
Does the order of the corner points matter?
The four points must be consecutive corners. Clockwise or counter-clockwise order both work; the result is the same hexagon, mirrored.
Is every centrally symmetric hexagon a parallelogon?
Every convex one is: opposite sides equal and parallel is exactly what lets copies of it fill the plane side by side without turning.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018
H. S. M. Coxeter, Introduction to Geometry, 2nd ed., 1969