Find rightmost/leftmost point of SVG path
<p>How to find leftmost/rightmost <strong>point</strong> of SVG C (bezier curve) path segment? I know there is <code>getBoundingClientRect()</code> and <code>getBBox()</code> but none of them apply since they return only single coordinate of the point.</p>

<hr>

<p>Just to avoid XY problem - I want to split single path composed of bezier curves into several paths each monotonously going from left to right (or right to left). It means that on any single path should be no 2 points having equal X coordinate. I understand that required split point may potentially be <em>inside</em> the bounding box of a segment thus not being leftmost/rightmost, but I'm almost sure that way of finding such point should use same techniques as finding horizontally extreme point.</p>