Merge pull request #27802 from Chaosus/fix_smoothstep_docs

Fix smooth_step to smoothstep in docs
This commit is contained in:
Yuri Roubinsky 2019-04-08 11:26:35 +03:00 committed by GitHub
commit 136fec72d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -987,9 +987,9 @@
<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.
[codeblock]
smooth_step(0, 2, 0.5) # returns 0.15
smooth_step(0, 2, 1.0) # returns 0.5
smooth_step(0, 2, 2.0) # returns 1.0
smoothstep(0, 2, 0.5) # returns 0.15
smoothstep(0, 2, 1.0) # returns 0.5
smoothstep(0, 2, 2.0) # returns 1.0
[/codeblock]
</description>
</method>