Point2D.h File Reference

#include "Point3D.h"
#include <cmath>
#include <ostream>
#include <boost/tuple/tuple.hpp>
#include <boost/functional/hash.hpp>

Include dependency graph for Point2D.h:

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

Go to the source code of this file.

Namespaces

namespace  instantiate2d

Classes

class  Point2D< T >
class  Volume2DSize
class  Point2DDistance< T >

Defines

#define max(A, B)   ((A) > (B) ? (A) : (B))
#define min(A, B)   ((A) < (B) ? (A) : (B))

Typedefs

typedef Point2D< doublePoint2Dd
typedef Point2D< floatPoint2Df
typedef Point2D< intGridPoint2D

Functions

template<typename T>
Point2D< T > operator- (const Point2D< T > &p)
template<typename T>
sqr_distance (const Point2D< T > &p1, const Point2D< T > &p2)
template<typename T>
double distance (Point2D< T > &p1, Point2D< T > &p2)
template<typename T>
ostream & operator<< (ostream &ss, const Point2D< T > &p)
template<typename T>
size_t hash_value (Point2D< double > const &p)
int instantiate2d::instantiate ()


Define Documentation

#define max ( A,
 )     ((A) > (B) ? (A) : (B))

Definition at line 260 of file Point2D.h.

#define min ( A,
 )     ((A) < (B) ? (A) : (B))


Typedef Documentation

Definition at line 212 of file Point2D.h.

Definition at line 208 of file Point2D.h.

Definition at line 210 of file Point2D.h.


Function Documentation

template<typename T>
double distance ( Point2D< T > &  p1,
Point2D< T > &  p2 
) [inline]

template<typename T>
size_t hash_value ( Point2D< double > const &  p  )  [inline]

Definition at line 200 of file Point2D.h.

References Point2D< T >::x(), and Point2D< T >::y().

Here is the call graph for this function:

template<typename T>
Point2D<T> operator- ( const Point2D< T > &  p  )  [inline]

Definition at line 175 of file Point2D.h.

template<typename T>
ostream& operator<< ( ostream &  ss,
const Point2D< T > &  p 
) [inline]

Definition at line 194 of file Point2D.h.

template<typename T>
T sqr_distance ( const Point2D< T > &  p1,
const Point2D< T > &  p2 
) [inline]


Generated on Wed Jul 9 16:34:45 2008 for PCSIM by  doxygen 1.5.5