Gimp.Path.prototype.stroke_get_point_at_dist

function stroke_get_point_at_dist(stroke_id: Number(gint), dist: Number(gdouble), precision: Number(gdouble)): [ok: Boolean, x_point: Number(gdouble), y_point: Number(gdouble), slope: Number(gdouble), valid: Boolean] {
    // Gjs wrapper for gimp_path_stroke_get_point_at_dist()
}
  

Get point at a specified distance along the stroke.

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.

Since 2.4

stroke_id

The stroke ID.

dist

The given distance.

precision

The precision used for the approximation.

ok

TRUE on success.

x_point

The x position of the point.

y_point

The y position of the point.

slope

The slope (dy / dx) at the specified point.

valid

Indicator for the validity of the returned data.