File: blob.h

package info (click to toggle)
gsumi 0.8-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 344 kB
  • ctags: 421
  • sloc: ansic: 5,088; makefile: 58; sh: 17
file content (25 lines) | stat: -rw-r--r-- 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "rect.h"

#ifndef __BLOB_H__
#define __BLOB_H__

typedef struct _BlobSpan BlobSpan;
typedef struct _Blob Blob;

struct _BlobSpan {
  int left;
  int right;
};

struct _Blob {
  int y;
  int height;
  BlobSpan data[0];
};


Blob *blob_convex_union (Blob *b1, Blob *b2);
Blob *blob_ellipse (double xc, double yc, double xp, double yp, double xq, double yq);
void blob_bounds(Blob *b, rect *r);

#endif __BLOB_H__