Difference between revisions of "Path2D:getPathOffset"

From GiderosMobile
(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...")
 
(No difference)

Latest revision as of 09:42, 6 February 2025

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