Merge pull request #95883 from jsjtxietian/curve2d-doc
Fix Curve2D incorrect sample range description
This commit is contained in:
commit
2a98d8d78a
|
@ -88,7 +88,7 @@
|
|||
<param index="0" name="idx" type="int" />
|
||||
<param index="1" name="t" type="float" />
|
||||
<description>
|
||||
Returns the position between the vertex [param idx] and the vertex [code]idx + 1[/code], where [param t] controls if the point is the first vertex ([code]t = 0.0[/code]), the last vertex ([code]t = 1.0[/code]), or in between. Values of [param t] outside the range ([code]0.0 >= t <=1[/code]) give strange, but predictable results.
|
||||
Returns the position between the vertex [param idx] and the vertex [code]idx + 1[/code], where [param t] controls if the point is the first vertex ([code]t = 0.0[/code]), the last vertex ([code]t = 1.0[/code]), or in between. Values of [param t] outside the range ([code]0.0 <= t <= 1.0[/code]) give strange, but predictable results.
|
||||
If [param idx] is out of bounds it is truncated to the first or last vertex, and [param t] is ignored. If the curve has no points, the function sends an error to the console, and returns [code](0, 0)[/code].
|
||||
</description>
|
||||
</method>
|
||||
|
|
Loading…
Reference in New Issue