I realize this may be trivial, but I'm having troubles finding an algorithm to determine if a polygon is monotone to with respect to a line, not necessarily a horizontal or vertical one.