Areas in skew coordinates #
Point = ℝ × ℝ carries the product Lebesgue measure volume. Because (x, z) denotes the
Euclidean point (x, (√3/2) z), the physical area of a set is (√3/2) · volume. Hence a filled
equilateral triangle of side s has volume = s ^ 2 / 2 and the unit hexagon has volume = 3.
The area budget is the only place where measure theory enters the proof.
Implementation notes.
volumeonℝ × ℝis the product measurevolume.prod volume, which is an additive Haar measure; we register that instance forPointexplicitly.- A triangle
convexHull {p, q, r}is the image of the standard trianglestdTriangle = {(s, t) | 0 ≤ s, 0 ≤ t, s + t ≤ 1}under the affine map(s, t) ↦ p + s • (q - p) + t • (r - p); the linear part has determinantcoordDet (q - p) (r - p)andstdTrianglehas volume1/2(Fubini). - The hexagon volume is computed by Fubini in the second coordinate: the horizontal section at
height
z ∈ [-1, 1]is the interval[-1 + |z|/2, 1 - |z|/2]of length2 - |z|.
The product Lebesgue measure on skew coordinates is an additive Haar measure.
The standard triangle and its volume #
Linear and affine images #
The determinant of linMap u v is the coordinate determinant coordDet u v.
Area of a (possibly degenerate) triangle given by three vertices, in skew coordinates.
Equilateral triangles #
The unit hexagon #
The area budget #
The area budget: the parts of the seven triangles outside the hexagon cannot exceed the total
area surplus 7 r ^ 2 / 2 - 3 (skew units; multiply by √3/2 for physical area).