Rectangle Class Reference

#include <point.h>

List of all members.


Detailed Description

A rectangle in positive space.

Usually represents a pixel-based zone on a map.

Definition at line 69 of file point.h.

Public Member Functions

bool contains (Point const &p) const

Public Attributes

unsigned short x
 x coordinate
unsigned short y
 y coordinate
unsigned short w
 width
unsigned short h
 height


Member Function Documentation

bool Rectangle::contains Point const &  p  )  const [inline]
 

Definition at line 77 of file point.h.


Member Data Documentation

unsigned short Rectangle::h
 

height

Definition at line 75 of file point.h.

unsigned short Rectangle::w
 

width

Definition at line 74 of file point.h.

unsigned short Rectangle::x
 

x coordinate

Definition at line 72 of file point.h.

unsigned short Rectangle::y
 

y coordinate

Definition at line 73 of file point.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 30 15:39:18 2007 for TMW Server by  doxygen 1.3.9.1