Merge pull request #44012 from Calinou/doc-curve3d-units

Fix incorrect `Curve3D.interpolate_baked()` description
This commit is contained in:
Rémi Verschelde 2020-12-01 20:08:46 +01:00 committed by GitHub
commit ca56d90722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@
<argument index="1" name="cubic" type="bool" default="false"> <argument index="1" name="cubic" type="bool" default="false">
</argument> </argument>
<description> <description>
Returns a point within the curve at position [code]offset[/code], where [code]offset[/code] is measured as a pixel distance along the curve. Returns a point within the curve at position [code]offset[/code], where [code]offset[/code] is measured as a distance in 3D units along the curve.
To do that, it finds the two cached points where the [code]offset[/code] lies between, then interpolates the values. This interpolation is cubic if [code]cubic[/code] is set to [code]true[/code], or linear if set to [code]false[/code]. To do that, it finds the two cached points where the [code]offset[/code] lies between, then interpolates the values. This interpolation is cubic if [code]cubic[/code] is set to [code]true[/code], or linear if set to [code]false[/code].
Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough). Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough).
</description> </description>