Basic rectangle handling
This module contains typedefs, functions and macros for handling rectangles. Also included are macros to determine intersections and unions areas. (../include/deds/rect.h)
Part of the deds library.
MX_RECT
A basic rectangle
This type is a basic rectangle with an upper-left at x1,y1 and lower-right at x2, y2. (../include/deds/rect.h)
member: int x1 Left coordinate (../include/deds/rect.h)
member: int y1 Upper coordinate (../include/deds/rect.h)
member: int x2 Right coordinate (../include/deds/rect.h)
member: int y2 Lower coordinate (../include/deds/rect.h)
# define MXRECT_VALID(A)
Is MX_RECT valid?
This macro returns non-zero if the upper-left of the rectangle is above and to the right of the lower-left of the rectangle, zero otherwise. (../include/deds/rect.h)
# define MXRECT_INTERSECT(A, B, R)
Find intersection of two rectangles
This macro finds the intersection of two rectangles. (../include/deds/rect.h)
# define MXRECT_UNION(A, B, R)
Union of two rectangles.
# define MXRECT_CONTAINS(R, X, Y)
Point contained in MX_RECT
This macro return non-zero if a given x,y point is indose the rectangel error, zero otherwise. (../include/deds/rect.h)
# define MXRECTS_OVERLAP(A, B)
Do MX_RECT overlap?
This macro return non-zero if two rectangels overlap, zero otherwise. (../include/deds/rect.h)
void mx_rect_move(MX_RECT* rrect, int x, int y)
Move a MX_RECT
This function moves a MX_REXT so that the upper left of the rectangle is at a given x,y, position. The size of the rectangle is not changed. (../include/deds/rect.c)
void mx_rect_resize(MX_RECT* rrect, int w, int h)
Resize a MX_RECT
This function resizes a MX_REXT to a given size. The upper left point of the rectangle does not change. (../include/deds/rect.c)
Generated by MXDOC 2.2 on Sun Feb 4 15:16:26 2007