Method

GeglPathclosest_point

Declaration [src]

gdouble
gegl_path_closest_point (
  GeglPath* path,
  gdouble x,
  gdouble y,
  gdouble* on_path_x,
  gdouble* on_path_y,
  gint* node_pos_before
)

Description [src]

Figure out what and where on a path is closest to arbitrary coordinates.

Returns the length along the path where the closest point was encountered.

Parameters

x gdouble
 

X coordinate.

y gdouble
 

Y coordinate.

on_path_x gdouble*
 

Return location for x coordinate on the path that was closest.

 The argument will be set by the function.
on_path_y gdouble*
 

Return location for y coordinate on the path that was closest.

 The argument will be set by the function.
node_pos_before gint*
 

The node position interpreted before this position was deemed the closest coordinate.

 The argument will be set by the function.

Return value

Returns: gdouble
  No description available.