Path2D:getPathOffset

From GiderosMobile
Revision as of 09:42, 6 February 2025 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2025.2<br/> '''Class:''' Path2D<br/> === Description === Gets the distance of a point in the path from the beginning. <syntaxhigh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2025.2
Class: Path2D

Description

Gets the distance of a point in the path from the beginning.

(number),(number) = Path2D:getPathOffset(px,py,accuracy,nextSegment)

Parameters

px: (number) point x location
py: (number) point y location
accuracy: (number) accuracy optional default = 0.001
nextSegment: (number) next segment optional

Return values

Returns (number) distance from beginning on x
Returns (number) distance from beginning on y