? - "" , ? , , , , ...
, - , Y- .
( - , (, , x-corrd?), , (y-coord))...
:, , "" Sin/Cos, , , > , , , "" ( ( Y ) . , , = , , ... x, . [ ]
, / , , , , , , ...
2nd EDIT: , ... , , .
PsuedoCode:
Check Leftmost point to see slope (Up Down or Zero)
If Zero, done
Check RightMost Slope
If Zero - Done
If two Slopes are same sign - Done
- pick Bigger of two points ( - or smaller if looking for min)
Check point in the Middle slope
If Zero, Done
If slope has same sign as left pt, Change Left to this Point and repeat
If slope has same sign as right pt, Change Right to this Point and repeat