Category: Geometry Level: 201
parallelogram: A = b · h, triangle: A = 1/2 · b · h
Cut a triangle off one end of a parallelogram and slide it to the other end: you get a rectangle with the same base and height. A triangle is half of such a parallelogram.
This parallelogram has base b = 6 and leans over by 2. Its height h = 4 is the straight-up distance between the top and bottom, not the slanted side.
b = 6, h = 4
Cut straight down along the height. A right triangle with legs 2 and 4 falls off the left end.
triangle: 2 by 4
Move the triangle 6 units to the right. Its slanted edge fits the slanted edge on the right exactly, like a puzzle piece.
slide right 6
The pieces now form a 6 by 4 rectangle with 24 unit squares. Nothing was added or lost, so the parallelogram has the same area.
A = b · h = 6 × 4 = 24
Draw a diagonal across the parallelogram. It splits into two copies of the same triangle, so one triangle gets half: 24 ÷ 2 = 12.
A = 1/2 · b · h = 1/2 · 6 · 4 = 12
cd svg-generator python3 -m svgmath render area-parallelogram-triangle --out /tmp/area-parallelogram-triangle
Source: svgmath/diagrams/area.py