Inside a rectangle, this line segment would be its diagonal.

Inside a circle, this line segment would be its diameter.

Inside a more "jagged" shape, it would be:

However, suppose we consider an irregular area, such as

The longest possible line segment that can be drawn would not be as intuitive any more. Is there any geometrical approach (hopefully an efficient one) which would allow us to determine this mentioned line segment for any (enclosed) areas, in general?
Just to clarify, the line segment in question is a straight line. The entire line segment must be contained within the area. It cannot cross the boundary.





