Path2D:getPathPoints

From GiderosMobile
Revision as of 11:44, 3 December 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2018.12<br/> '''<translate>Class</translate>:''' Path2D<br/> === <t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2018.12
Class: Path2D

Description

Compute points location along the path. To do so, the path is converted into a series of straight segments and particular points are sampled along it. The resulting table outputs, for each point, its location (x,y) and its tangent orientation (angle)

(table) = Path2D:getPathPoints(interval,offset,maxpts,flatness,subdiv_limit)

Parameters

interval: (number) distance between each considered point
offset: (number) distance to first point of interest
maxpts: (number) maximum number of points to sample
flatness: (number) maximum acceptable deviation for real curve
subdiv_limit: (number) maximum curve subdivision limit

Return values

Returns (table) information about selected points