Thanks for your replies.
No berkeman this is not for schoolwork. I'm developping a software plugin in which cars follow spline S. An array of struct (SpeedLimit, Acceleration, Position, Tangent,...) is used, among other things, to define the speed of the car along S. When the car crosses the...