Skip to content

Documentation / @ripl/core / samplePathPoint

Function: samplePathPoint() ​

samplePathPoint(pathData, distance): PathPoint

Defined in: packages/core/src/math/geometry.ts:150

Samples a point and tangent angle at the given distance along an SVG path.

Parameters ​

ParameterType
pathDatastring
distancenumber

Returns ​

PathPoint