segment_get_middle_pos


Description:

[ 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.

Parameters:

this

The gradient.

segment

The index of a segment within the gradient.

pos

The return position.

Returns:

TRUE on success.