mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 08:25:31 +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)
|
if (path->first == path->last)
|
||||||
return 1;
|
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);
|
void path_add(struct path *path, double x, double y, double z);
|
||||||
struct path *path_reverse(const struct path *path);
|
struct path *path_reverse(const struct path *path);
|
||||||
struct path *path_clone(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);
|
int path_tool_is_left(const struct path *path);
|
||||||
struct path *path_offset(const struct path *path, int left, int notch);
|
struct path *path_offset(const struct path *path, int left, int notch);
|
||||||
const struct path *path_find_leftmost(const struct path *path);
|
const struct path *path_find_leftmost(const struct path *path);
|
||||||
|
Loading…
Reference in New Issue
Block a user