SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Point2D< coord_type > Class Template Reference

#include <points.h>

Public Member Functions

coord_type getX () const
 
coord_type getY () const
 
double magnitude () const
 
template<class point_type >
bool operator!= (const Point2D< point_type > &old) const
 
template<class point_type >
Point2D< coord_type > & operator+= (const Point2D< point_type > &old)
 
template<class point_type >
Point2D< coord_type > & operator-= (const Point2D< point_type > &old)
 
template<class point_type >
Point2D< coord_type > & operator= (const Point2D< point_type > &old)
 
Point2D< coord_type > & operator= (const Point2D< coord_type > &old)
 
template<class point_type >
bool operator== (const Point2D< point_type > &old) const
 
coord_type operator[] (int i) const
 
 Point2D ()
 
 Point2D (coord_type x0, coord_type y0)
 
template<class point_type >
 Point2D (const Point2D< point_type > &old)
 
 Point2D (const Point2D< coord_type > &old)
 
void rotate (double angle)
 
void set (coord_type nx, coord_type ny)
 
void setX (coord_type nx)
 
void setY (coord_type ny)
 
void swap ()
 
coord_type x () const
 
coord_type y () const
 
 ~Point2D ()
 

Protected Attributes

coord_type _x
 
coord_type _y
 

Detailed Description

template<class coord_type>
class Point2D< coord_type >

Definition at line 37 of file points.h.

Constructor & Destructor Documentation

template<class coord_type>
Point2D< coord_type >::Point2D ( )
inline

Definition at line 42 of file points.h.

template<class coord_type>
Point2D< coord_type >::Point2D ( coord_type  x0,
coord_type  y0 
)
inline

Definition at line 47 of file points.h.

template<class coord_type>
template<class point_type >
Point2D< coord_type >::Point2D ( const Point2D< point_type > &  old)
inline

Definition at line 54 of file points.h.

template<class coord_type>
Point2D< coord_type >::Point2D ( const Point2D< coord_type > &  old)
inline

Definition at line 77 of file points.h.

template<class coord_type>
Point2D< coord_type >::~Point2D ( )
inline

Definition at line 90 of file points.h.

Member Function Documentation

template<class coord_type>
coord_type Point2D< coord_type >::getX ( ) const
inline
template<class coord_type>
coord_type Point2D< coord_type >::getY ( ) const
inline
template<class coord_type>
double Point2D< coord_type >::magnitude ( ) const
inline

Definition at line 170 of file points.h.

template<class coord_type>
template<class point_type >
bool Point2D< coord_type >::operator!= ( const Point2D< point_type > &  old) const
inline

Definition at line 123 of file points.h.

template<class coord_type>
template<class point_type >
Point2D<coord_type>& Point2D< coord_type >::operator+= ( const Point2D< point_type > &  old)
inline

Definition at line 133 of file points.h.

template<class coord_type>
template<class point_type >
Point2D<coord_type>& Point2D< coord_type >::operator-= ( const Point2D< point_type > &  old)
inline

Definition at line 142 of file points.h.

template<class coord_type>
template<class point_type >
Point2D<coord_type>& Point2D< coord_type >::operator= ( const Point2D< point_type > &  old)
inline

Definition at line 61 of file points.h.

template<class coord_type>
Point2D<coord_type>& Point2D< coord_type >::operator= ( const Point2D< coord_type > &  old)
inline

Definition at line 83 of file points.h.

template<class coord_type>
template<class point_type >
bool Point2D< coord_type >::operator== ( const Point2D< point_type > &  old) const
inline

Definition at line 114 of file points.h.

template<class coord_type>
coord_type Point2D< coord_type >::operator[] ( int  i) const
inline

Definition at line 103 of file points.h.

template<class coord_type>
void Point2D< coord_type >::rotate ( double  angle)
inline

NOTE: The angle is assumed to be in RADIANS.

Definition at line 153 of file points.h.

template<class coord_type>
void Point2D< coord_type >::set ( coord_type  nx,
coord_type  ny 
)
inline

Definition at line 101 of file points.h.

template<class coord_type>
void Point2D< coord_type >::setX ( coord_type  nx)
inline
template<class coord_type>
void Point2D< coord_type >::setY ( coord_type  ny)
inline
template<class coord_type>
void Point2D< coord_type >::swap ( )
inline

Definition at line 165 of file points.h.

template<class coord_type>
coord_type Point2D< coord_type >::x ( ) const
inline
template<class coord_type>
coord_type Point2D< coord_type >::y ( ) const
inline

Field Documentation


The documentation for this class was generated from the following file: