@rbxts/types 1.0.835 → 1.0.836
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/lua.d.ts +6 -0
- package/package.json +1 -1
package/include/lua.d.ts
CHANGED
|
@@ -511,6 +511,12 @@ declare namespace math {
|
|
|
511
511
|
/** Maps a number from one range to another. */
|
|
512
512
|
function map(x: number, inmin: number, inmax: number, outmin: number, outmax: number): number;
|
|
513
513
|
|
|
514
|
+
/**
|
|
515
|
+
* Returns the linear interpolation between a and b based on the factor t.
|
|
516
|
+
* This function uses the formula a+(b-a)*t. t is typically between 0 and 1 but values outside this range are acceptable.
|
|
517
|
+
*/
|
|
518
|
+
function lerp(a: number, b: number, t: number): number;
|
|
519
|
+
|
|
514
520
|
/** Returns the maximum value among the numbers passed to the function. */
|
|
515
521
|
function max(...n: Array<number>): number;
|
|
516
522
|
|