News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

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