Sum of distances of a point in an equilateral triangle
Drag the point D to see how the length of the altitude of the triangle (k) is the same as the sum of the distances of D from the sides of the triangle (p).
You can also drag the verteces of the triangle to see how this is true for different lengths of the triangle.