Add documentation on math.lerp

This commit is contained in:
Jeremy Baxter 2023-07-02 08:40:09 +12:00
parent 69b4227271
commit b2c028a3cb

10
lmath.c
View file

@ -10,6 +10,16 @@
#include "util.h"
/***
* Linearly interpolates using the values given.
*
* Returns `x + (y - x) * z`
*
* @function lerp
* @tparam number x
* @tparam number y
* @tparam number z
*/
static int
math_lerp(lua_State *L)
{