Add documentation on math.lerp
This commit is contained in:
parent
69b4227271
commit
b2c028a3cb
1 changed files with 10 additions and 0 deletions
10
lmath.c
10
lmath.c
|
@ -10,6 +10,16 @@
|
||||||
#include "util.h"
|
#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
|
static int
|
||||||
math_lerp(lua_State *L)
|
math_lerp(lua_State *L)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue