Main Page | Data Structures | File List | Data Fields | Globals

mr_line.h File Reference

Go to the source code of this file.

Data Structures

struct  MrLine
 2D Line More...

Defines

#define MR_LINE_DIFF_X1(l1, l2)   ((l1).x1 - (l2).x1)
#define MR_LINE_DIFF_Y1(l1, l2)   ((l1).y1 - (l2).y1)
#define MR_BB_WIDTH(bb)   ((bb).x2 - (bb).x1)
#define MR_BB_HEIGHT(bb)   ((bb).y2 - (bb).y1)

Typedefs

typedef MrLine MrLine

Functions

MrLinemr_line_new ()
MrLinemr_line_new_init (int x1, int y1, int x2, int y2)
void mr_line_set (MrLine *dst, const MrLine *src)
void mr_line_free (void *l)


Define Documentation

#define MR_BB_HEIGHT bb   )     ((bb).y2 - (bb).y1)
 

Gives the height of a bounding box.

#define MR_BB_WIDTH bb   )     ((bb).x2 - (bb).x1)
 

Gives the width of a bounding box.

#define MR_LINE_DIFF_X1 l1,
l2   )     ((l1).x1 - (l2).x1)
 

Simple L1 distance in X for starting positions.

#define MR_LINE_DIFF_Y1 l1,
l2   )     ((l1).y1 - (l2).y1)
 

Simple L1 distance in Y for starting positions.


Typedef Documentation

typedef struct MrLine MrLine
 


Function Documentation

void mr_line_free void *  l  ) 
 

Destroy a line.

MrLine* mr_line_new  ) 
 

Creates a new line with zero coordinates.

MrLine* mr_line_new_init int  x1,
int  y1,
int  x2,
int  y2
 

Creates a new line with specified coordinates.

void mr_line_set MrLine dst,
const MrLine src
 

Copy the coordinate of a specified line.


Generated on Sun Apr 9 17:29:41 2006 for MusicReco by  doxygen 1.4.4