mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 04:13:20 +02:00
cameo/path.c: make path_is_closed global
This commit is contained in:
parent
382d14dcbb
commit
f48754e067
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user