How do you get width at a given hieght?

The best idea I had was getting the bounding box width, looping through that with point tests, and returning the number of hits. Can you think of a better idea?