pub fn interpolate(
x1: I32F32,
x2: I32F32,
y1: I32F32,
y2: I32F32,
t: I32F32,
) -> I32F32Expand description
Linearly interpolates a value t between two points (x1, y1) and (x2, y2).
§Arguments
x1,x2: The x-coordinates of the two points.y1,y2: The y-coordinates of the two points.t: The x-coordinate for which the interpolated y-value is to be calculated.
§Returns
- An
I32F32representing the interpolated y-value.