Fix smooth_step to smoothstep docs
(cherry picked from commit d725e4e6c0
)
This commit is contained in:
parent
c8944e380a
commit
cd662249f5
|
@ -985,9 +985,9 @@
|
||||||
<description>
|
<description>
|
||||||
Returns a number smoothly interpolated between the [code]from[/code] and [code]to[/code], based on the [code]weight[/code]. Similar to [method lerp], but interpolates faster at the beginning and slower at the end.
|
Returns a number smoothly interpolated between the [code]from[/code] and [code]to[/code], based on the [code]weight[/code]. Similar to [method lerp], but interpolates faster at the beginning and slower at the end.
|
||||||
[codeblock]
|
[codeblock]
|
||||||
smooth_step(0, 2, 0.5) # returns 0.15
|
smoothstep(0, 2, 0.5) # returns 0.15
|
||||||
smooth_step(0, 2, 1.0) # returns 0.5
|
smoothstep(0, 2, 1.0) # returns 0.5
|
||||||
smooth_step(0, 2, 2.0) # returns 1.0
|
smoothstep(0, 2, 2.0) # returns 1.0
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
|
Loading…
Reference in New Issue