1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-22 23:26:27 +02:00

cameo/path.c: make path_is_closed global

This commit is contained in:
Werner Almesberger 2012-06-12 14:24:50 -03:00
parent 382d14dcbb
commit f48754e067
2 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,7 @@ static int points_eq(const struct point *a, const struct point *b)
}
static int path_is_closed(const struct path *path)
int path_is_closed(const struct path *path)
{
if (path->first == path->last)
return 1;

View File

@ -34,6 +34,7 @@ struct path *path_new(double r_tool, const char *id);
void path_add(struct path *path, double x, double y, double z);
struct path *path_reverse(const struct path *path);
struct path *path_clone(const struct path *path);
int path_is_closed(const struct path *path);
int path_tool_is_left(const struct path *path);
struct path *path_offset(const struct path *path, int left, int notch);
const struct path *path_find_leftmost(const struct path *path);