tools-utils
void gimp_tool_motion_constrain (gdouble start_x, gdouble start_y, gdouble *end_x, gdouble *end_y);
Restricts the motion vector to 15 degree steps by changing the end point (if necessary).
start_x :
start_x
start_y :
start_y
end_x :
end_x
end_y :
end_y