inline Coords *coords_sum_new (const Coords *a, const Coords *b) { if (G_UNLIKELY (!a || !b)) return NULL; Coords *c = coords_new (a->x, a->y); c->x += b->x; c->y += b->y; return c; }
coords* coords_dup(const coords* c) { coords* d = coords_new( c->img_width, c->img_height, c->init_cx, c->init_cy, c->init_size); if (!d) return 0; coords_cpy(d, c); return d; }
inline Coords *coords_new_copy (const Coords *src) { return coords_new (src->x, src->y); }