Digon

Author

Eric W. Weisstein
August 14, 2026

This notebook downloaded from https://mathworld.wolfram.com/notebooks/PlaneGeometry/Digon.nb.

For more information, see Eric's MathWorld entry https://mathworld.wolfram.com/Digon.html.

©2026 Wolfram Research, Inc. except for portions noted otherwise

Illustration

The two polygon edges of the degenerate digon coincide along the segment AB and therefore appear as one segment.

Module[{a,angleColor,b,neutral},a={-1.7,0};b={1.7,0};angleColor=RGBColor[0.15,0.45,0.8];neutral=LightDarkSwitched[Black,White];Graphics[{Directive[angleColor,AbsoluteThickness[3]],Line[{a,b}],Text[Style["A",16,neutral,FontFamily->"Times",FontSlant->"Italic"],a+{-0.18,0}],Text[Style["B",16,neutral,FontFamily->"Times",FontSlant->"Italic"],b+{0.18,0}]},AspectRatio->(1/8)]]