gml_Geometry.h File Reference


Detailed Description

Structures to represent 2D points and rectangles.

#include <assert.h>
#include "gml/base/gml_Types.h"
#include "gml/math/gml_Math.h"

Go to the source code of this file.


Classes

struct  gml_TRect
 2D rectangles with integer coordinates. More...
struct  gml_TPoint
 2D points with integer coordinates. More...
struct  gml_TRectFloat
 2D rectangles with floating-point coordinates. More...
struct  gml_TPointFloat
 2D points with floating-point coordinates. More...

Functions

static SInt32 gml_Rect_Width (gml_TRect *rect)
 Return the width of a gml_TRect.
static SInt32 gml_Rect_Height (gml_TRect *rect)
 Return the height of a gml_TRect.
static gml_TBoolean gml_Rect_Equal (gml_TRect *rect0, gml_TRect *rect1)
 Return true iff the two rectangles are identical.
static void gml_SetValidRect (SInt32 w, SInt32 h, gml_TRect *rectPtr, gml_TRect *validRect)
 If rectPtr is NULL, set validRect to the (0, 0, w, h) rectangle.

Function Documentation

static void gml_SetValidRect ( SInt32  w,
SInt32  h,
gml_TRect rectPtr,
gml_TRect validRect 
) [inline, static]

If rectPtr is NULL, set validRect to the (0, 0, w, h) rectangle.

Else set it to the intersection of that rectangle and the rectangle pointed by rectPtr.

Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.