Difference between revisions of "Path2D:getSegmentSize"
From GiderosMobile
(wip) |
|||
Line 6: | Line 6: | ||
Computes segment length in a path from coordinates indices. | Computes segment length in a path from coordinates indices. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
− | (number) = Path2D:getSegmentSize(start,end | + | (number) = Path2D:getSegmentSize(start,end) |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 12: | Line 12: | ||
'''start''': (number) index start '''optional'''<br/> | '''start''': (number) index start '''optional'''<br/> | ||
'''end''': (number) index end '''optional'''<br/> | '''end''': (number) index end '''optional'''<br/> | ||
− | |||
− | |||
=== Return values === | === Return values === |
Latest revision as of 13:18, 17 February 2025
Available since: Gideros 2025.2.1
Class: Path2D
Description
Computes segment length in a path from coordinates indices.
(number) = Path2D:getSegmentSize(start,end)
Parameters
start: (number) index start optional
end: (number) index end optional
Return values
Returns (number) the segment length