Category: Geometry Level: 201
A = 1/2 · (a + b) h
Two copies of a trapezoid, one turned upside down, make a parallelogram with base a + b. The trapezoid is half of it.
The trapezoid has parallel sides a = 3 on top and b = 6 on the bottom, with height h = 3.
a = 3, b = 6, h = 3
Turn a second copy upside down and set it beside the first. Its long side b = 6 now runs along the top.
two trapezoids
Together they make a parallelogram with base a + b = 9 and height 3, area 27. One trapezoid is half: 13.5.
A = 1/2 · (3 + 6) · 3 = 13.5
cd svg-generator python3 -m svgmath render area-trapezoid --out /tmp/area-trapezoid
Source: svgmath/diagrams/area.py