A quadratic Bézier curve is defined by three points: P0, P1, and P2. In the case you've described for a right triangle, P0 and P2 would be the endpoints of the hypotenuse, and P1 would be the vertex of the 90-degree angle.
The length of a Bézier curve is not explicitly determined by the positions of the control points, it's calculated by integrating the speed function along the curve, which can be quite complex. However, in this special case, we can intuit some relationship between the curve length and the hypotenuse.
For a quadratic Bézier curve, the formula is as follows:
B(t) = (1 - t)^2 * P0 + 2 * (1 - t) * t * P1 + t^2 * P2, where t is in [0, 1].
Given that P1 is the vertex of the right angle, the Bézier curve will be a path that starts at one endpoint of the hypotenuse (P0), goes straight toward the vertex of the right angle (P1), and then bends towards the other endpoint of the hypotenuse (P2). The curve is, in effect, "pulled" towards P1, creating a bulge inside the triangle.
From a geometric point of view, this specific Bézier curve will always be longer than the straight line segment of the hypotenuse because it takes a "detour" through P1, the vertex of the right angle. However, the exact ratio of the Bézier curve's length to the hypotenuse's length is not a fixed constant and depends on the specific shape of the right triangle (the relative lengths of the two legs).
To find the actual length of the Bézier curve, one would typically have to use numerical integration or approximation techniques, as there is no simple formula for the arc length of a quadratic Bézier curve. Nonetheless, it's clear that the relationship is such that the Bézier curve is longer than the hypotenuse, and the exact difference in length would depend on the specific geometry of the right triangle in question.