Skip to content

Commit cc98700

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

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
@@ -352,15 +352,9 @@ functions:
352352
Returns the value of `x` mapped from one range to another.
353353
description: |
354354
Returns a value that represents `x` mapped linearly from the input range
355-
[`inmin`, `inmax`] to the output range [`outmin`, `outmax`]. This is achieved
356-
by determining the relative position of `x` within the input range and applying
357-
that ratio to the output range.
358-
359-
The mapping is calculated using the formula:
360-
361-
```
362-
outmin + ((x - inmin) / (inmax - inmin)) * (outmax - outmin)
363-
```
355+
(`inmin` to `inmax`) to the output range (`outmin` to `outmax`). This is
356+
achieved by determining the relative position of `x` within the input
357+
range and applying that ratio to the output range.
364358
parameters:
365359
- name: x
366360
type: number

0 commit comments

Comments
 (0)