Interpolates from a to b along a smoothstep 3t^2 - 2t^3 of t, so the change starts and ends gently. Takes float or Vector3; t is expected in [0, 1] and is not clamped.
assert(hermite(0.0, 10.0, 0.5) == 5);
assert(hermite(0.0, 10.0, 0.25) == 1.5625);hermite :: (a: float, b: float, t: float) -> float
Parameters
- a: float
- b: float
- t: float
Returns
- float
hermite :: (a: Vector3, b: Vector3, t: float) -> Vector3