The Viviani’s theorem calculator gives the third distance from an interior point to the sides of a triangle when two are known, the sum of the distances, the barycentric weights of the point and the altitude, using the relation a·d_a + b·d_b + c·d_c = 2Δ.
How the calculation works
- Enter the three sides a, b and c of the triangle.
- Enter the distances from the point to sides a and b.
- Read the third distance and the barycentric weights of the point.
Example
In a triangle with sides 7 cm, 8 cm and 9 cm and an area of 26.833 cm², a point at 2 cm from side a and 3 cm from side b is 1.741 cm from side c, so the three distances add up to 6.741 cm. Its barycentric weights are 26.09 %, 44.72 % and 29.19 %. An equilateral triangle of side a would have a constant sum of 6.062 cm.
Why it matters
The calculator helps students and teachers of geometry, surveyors, engineers and game developers who place a point in a triangle, interpolate values with barycentric coordinates, share a plot of land, or check Viviani’s theorem on an example, and need the missing distance without drawing the figure.
Good to know
The relation holds for any triangle, and the sum of the three distances is constant only when the triangle is equilateral. A negative third distance means the point is outside the triangle, so lower one of the two distances. The sides must satisfy the triangle inequality. The distances are measured perpendicular to the sides. All values use one length unit, and the area uses its square. The barycentric weights are in percent and add up to 100 percent.
Related tools
The triangle calculator solves the basic measures, the triangle centers calculator locates special points, the triangle solver finds sides and angles, and the Euler line calculator gives distances between the main centers.