Share

wedge_parameter

Linearly interpolate the input data based on the values of the wedge_index and wedge_index_count job ports.

Job Port Inputs

wedge_index

The wedge index obtained by this node.

wedge_index_count

The wedge index count obtained by this node.

Inputs

start

The starting point of the interpolated output value.

end

The end point of the interpolated output value.

clamp

Property to limit value between start and end.

Outputs

value

The interpolated value. The values of the wedge_index and wedge_index_count job ports are used in the linear interpolation as follows:

// Let wedge_index be the index of the wedge.
// Let wedge_index_count be the index count of the wedge.
// For wedge_index_count less than or equal to 0, then the returned value is `start`.
// If wedge_index_count is equal to 1, then `t` is wedge_index / 1.

if (wedge_index_count <= 0) {
    value = start
}
else {
    float t = wedge_index / max(1, wedge_index_count-1)
    value = start + t * (end-start)
}

Was this information helpful?