Consider a circle with a radius of 10 units. A triangle is inscribed in this circle such that one of its sides lies along the diameter of the circle.
If the triangle has an area of 40 square units, what is the length of the line segment from the center of the circle to the vertex opposite the diameter?