Triangle angles from squared edge lengths (RC6b, step 1) #
The first brick of the convergence of Regge's deficit angles in dimension two (Cheeger, Müller and
Schrader). A piecewise flat surface is given by the squared lengths of its edges. The angle of a
triangle at a vertex is computed from them by the law of cosines. This file defines that angle and
proves that it is the Euclidean angle for every triangle in an inner product space, and that the
three angles of a triangle sum to π.
Definitions #
triAngle a b c: the angle at the vertex whose two edges have squared lengthsa,b, opposite to the edge of squared lengthc:arccos ((a + b - c) / (2 √(a b))).
Main results #
triAngle_eq_angle: for pointsx v w,triAngle ‖x - v‖² ‖w - v‖² ‖x - w‖² = ∠ x v w.triAngle_sum: the three angles of a triangle with distinct vertices sum toπ.
The angle at a vertex of a triangle from squared edge lengths: the two adjacent edges have
squared lengths a, b, the opposite edge c. It is arccos ((a + b - c) / (2 √(a b))), a junk
value when a or b is 0.
Equations
- Lightlike.CMS.triAngle a b c = Real.arccos ((a + b - c) / (2 * √(a * b)))
Instances For
The law of cosines gives the Euclidean angle. For points x v w of an inner product space,
the angle at v computed from the three squared distances is the Euclidean angle ∠ x v w.
Angle sum. The three angles computed from the squared lengths of a triangle with distinct
vertices add up to π.