pub fn interpolate_curve( scaling_data: &ItemScalingData, curve_id: i32, x: f64, ) -> Option<f64>
Interpolate a piecewise-linear curve at x; values outside the range clamp to the nearest endpoint.
x