tagGame::Shape Class Reference

Common base class for all obstacles. More...

#include <Shape.h>

Inheritance diagram for tagGame::Shape:

Inheritance graph
[legend]
Collaboration diagram for tagGame::Shape:

Collaboration graph
[legend]
List of all members.

Public Member Functions

RealVec const & getPosition () const
void setPosition (RealVec const &position)
RealVec const & getOrientation () const
void setOrientation (RealVec const &orientation)
virtual std::ostream & output (std::ostream &out) const =0
bool isTouching (Shape const &o) const
virtual RealVec nearestIntersection (RealVec const &p, RealVec const &v) const=0
 Calculate the nearest intersection point of a line in the direction v from the point p.
virtual RealVec normalTo (Shape const &o) const =0
 Return a vector that is normal to o, with respect to this.
virtual RealVec normalTo (Circle const &c) const =0
virtual Real distanceTo (Shape const &o) const =0
virtual Real distanceTo (Circle const &c) const =0
virtual Real distanceTo (Side const &s) const =0
Real distanceSquaredTo (Shape const &o) const

Detailed Description

Common base class for all obstacles.


The documentation for this class was generated from the following file:
Generated on Sat Mar 31 22:31:01 2007 for tagGame by  doxygen 1.5.1