Path2D:getSegmentSize: Difference between revisions

From GiderosMobile
wip
 
No edit summary
 
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,length,nextSegment)
(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/>
'''length''': (number) number of segments '''optional'''<br/>
'''nextSegment''': (number) next segment '''optional'''<br/>


=== Return values ===
=== Return values ===

Latest revision as of 11: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