Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: Zap::Rect Struct Reference

# Zap::Rect Struct Reference

`#include <point.h>`

## Public Member Functions

| Rect ()
| Rect (Point p1, Point p2)
Point | getCenter ()
void | set (Point p1, Point p2)
bool | contains (const Point &p)
void | unionPoint (const Point &p)
void | unionRect (const Rect &r)
bool | intersects (const Rect &r)
void | expand (Point delta)
Point | getExtents ()

## Data Fields

Point | min
Point | max

## Constructor & Destructor Documentation

Zap::Rect::Rect | ( |  | ) | `[inline]`

Zap::Rect::Rect | ( | Point | p1,
|  | Point | p2 |
| ) |  |  | `[inline]`

## Member Function Documentation

Point Zap::Rect::getCenter | ( |  | ) | `[inline]`

void Zap::Rect::set | ( | Point | p1,
|  | Point | p2 |
| ) |  |  | `[inline]`

bool Zap::Rect::contains | ( | const Point & | p | ) | `[inline]`

void Zap::Rect::unionPoint | ( | const Point & | p | ) | `[inline]`

void Zap::Rect::unionRect | ( | const Rect & | r | ) | `[inline]`

bool Zap::Rect::intersects | ( | const Rect & | r | ) | `[inline]`

void Zap::Rect::expand | ( | Point | delta | ) | `[inline]`

Point Zap::Rect::getExtents | ( |  | ) | `[inline]`

## Field Documentation

Point Zap::Rect::min

Point Zap::Rect::max