src/tools/tCoord.h File Reference

#include "defs.h"
#include "tError.h"
#include <iterator>
#include <algorithm>
#include <map>
#include <vector>

Include dependency graph for tCoord.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tCoord
 Stores any kind of x and y coordinates. More...
class  tCoord::GrahamComparator

Functions

REAL se_EstimatedRangeOfMult (const tCoord &a, const tCoord &b)
REAL st_GetDifference (const tCoord &a, const tCoord &b)
 returns a measure for the equality of two coords
std::ostream & operator<< (std::ostream &s, const tCoord &c)
std::istream & operator>> (std::istream &s, tCoord &c)
tCoord operator * (REAL a, tCoord const &c)
 stretches a coordinate by a factor from the center

Variables

const tCoord se_zeroCoord
 ?


Function Documentation

tCoord operator * ( REAL  a,
tCoord const &  c 
) [inline]

stretches a coordinate by a factor from the center

Definition at line 157 of file tCoord.h.

00157                                                  {
00158     return c*a;
00159 }

std::ostream& operator<< ( std::ostream &  s,
const tCoord c 
) [inline]

Parameters:
s the stream for the coordinate to be inserted into
c the coordinate to be inserted
Returns:
the stream given in s

Definition at line 143 of file tCoord.h.

References tCoord::Print().

00143                                                              {
00144     c.Print(s);
00145     return s;
00146 }

Here is the call graph for this function:

std::istream& operator>> ( std::istream &  s,
tCoord c 
) [inline]

Parameters:
s the stream for the coordinate to be read from
c the coordinate to be read
Returns:
the stream given in s

Definition at line 151 of file tCoord.h.

References tCoord::Read().

00151                                                        {
00152     c.Read(s);
00153     return s;
00154 }

Here is the call graph for this function:

REAL se_EstimatedRangeOfMult ( const tCoord a,
const tCoord b 
)

handy function used to decide whether a*b is small enough to consider a and b lineary dependant (criterium: |a*b|<EPS*estim....)

Referenced by eGrid::DrawLine(), eHalfEdge::IntersectWithCareless(), eGameObject::Move(), tCoord::operator==(), and se_SanifyDisplacement().

Here is the caller graph for this function:

REAL st_GetDifference ( const tCoord a,
const tCoord b 
)

returns a measure for the equality of two coords

Referenced by tRecorderSync< DATA >::Archive(), and tRecorderSync< DATA >::GetDifference().

Here is the caller graph for this function:


Variable Documentation

const tCoord se_zeroCoord

?

Referenced by eWall::EndPoint().


Generated on Sat Mar 15 23:11:27 2008 for Armagetron Advanced by  doxygen 1.5.4