gimp-vectors-stroke-get-point-at-dist

Simon Budig

Description

Get point at a specified distance along the stroke.

Help

This will return the x,y position of a point at a given distance along the stroke. The distance will be obtained by first digitizing the curve internally and then walking along the curve. For a closed stroke the start of the path is the first point on the path that was created. This might not be obvious. If the stroke is not long enough, a "valid" flag will be FALSE.


Type

unknown

Parameters

Type Name Description
unknown vectors The vectors object
PF_INT stroke-id The stroke ID
PF_FLOAT dist The given distance.
PF_FLOAT precision The precision used for the approximation

Return

Type Name Description
PF_FLOAT x-point The x position of the point.
PF_FLOAT y-point The y position of the point.
PF_FLOAT slope The slope (dy / dx) at the specified point.
PF_INT valid Indicator for the validity of the returned data. (TRUE or FALSE)