Might be misreading but it looks like some of the ofPolyline member documentation is jumbled:
getClosestPoint() has the text for getBoundingBox()
getDegreesAtIndexInterpolated() has the text for getClosestPoint()
might be others too, I haven't looked all the way through yet