-- @/lua/common/mathlib.lua:1314 function quadraticBezier(p1, p2, p3, t) local t1 = 1-t return t1*t1*p1 + 2*t*t1*p2 + t*t*p3 end