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 | |
MrLine * | mr_line_new () |
MrLine * | mr_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) |
|
Gives the height of a bounding box. |
|
Gives the width of a bounding box. |
|
Simple L1 distance in X for starting positions. |
|
Simple L1 distance in Y for starting positions. |
|
|
|
Destroy a line. |
|
Creates a new line with zero coordinates. |
|
Creates a new line with specified coordinates. |
|
Copy the coordinate of a specified line. |