Skip to content

Commit a827e09

Browse files
OutOfBearsIgnisRBX
andauthored
Update content/en-us/reference/engine/libraries/math.yaml
Co-authored-by: IgnisRBX <[email protected]>
1 parent 8ce162f commit a827e09

File tree

1 file changed

+3
-9
lines changed
  • content/en-us/reference/engine/libraries

1 file changed

+3
-9
lines changed

content/en-us/reference/engine/libraries/math.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,9 @@ functions:
286286
Returns the linear interpolation between `a` and `b`.
287287
description: |
288288
Returns the linear interpolation between `a` and `b` based on the factor `t`.
289-
When `t` is 0, the function returns `a`, and when `t` is 1, it returns `b`. For
290-
values of `t` between 0 and 1, the function computes a proportional blend between
291-
the two values.
292-
293-
The interpolation is calculated using the formula:
294-
295-
```
296-
a + (b - a) * t
297-
```
289+
290+
This function uses the formula `a`+`(b-a)`\*`t`. `t` is typically
291+
between `0` and `1` but values outside this range are acceptable.
298292
parameters:
299293
- name: a
300294
type: number

0 commit comments

Comments
 (0)