[ Version ( since = "2.2" ) ]
public bool segment_get_middle_pos (int segment, out double pos)
Gets the midpoint position of the segment
Gets the position of the midpoint of the segment of the gradient. Returns an error when the segment index is out of range.
| this |
The gradient. |
| segment |
The index of a segment within the gradient. |
| pos |
The return position. |
|
TRUE on success. |