All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
NetworKit::Point2D< T > Class Template Reference

Points in any dimension of templated type. More...

#include <Point2D.h>

Public Member Functions

 Point2D ()
 
 Point2D (T x, T y)
 
 Point2D (T x, T y, index indice)
 
virtual ~Point2D ()
 
count getDimensions ()
 
distance (const Point2D< T > &p) const
 
squaredDistance (const Point2D< T > &p) const
 
Point2Doperator+= (const Point2D< T > &p)
 
Point2Doperator-= (const Point2D< T > &p)
 
Point2Dscale (const T factor)
 
Point2D operator- (const Point2D< T > &other)
 
Point2D operator+ (const Point2D< T > &other)
 
length () const
 
squaredLength () const
 
T & operator[] (const index i)
 
getX () const
 
getY () const
 
index getIndex () const
 

Protected Attributes

x
 
y
 
index indice
 

Detailed Description

template<class T>
class NetworKit::Point2D< T >

Points in any dimension of templated type.

Constructor & Destructor Documentation

template<class T>
NetworKit::Point2D< T >::Point2D ( )
inline
template<class T>
NetworKit::Point2D< T >::Point2D ( x,
y 
)
inline
template<class T>
NetworKit::Point2D< T >::Point2D ( x,
y,
index  indice 
)
inline
template<class T>
virtual NetworKit::Point2D< T >::~Point2D ( )
inlinevirtual

Member Function Documentation

template<class T>
T NetworKit::Point2D< T >::distance ( const Point2D< T > &  p) const
template<class T>
count NetworKit::Point2D< T >::getDimensions ( )
inline
template<class T >
index NetworKit::Point2D< T >::getIndex ( ) const
inline
template<class T >
T NetworKit::Point2D< T >::getX ( ) const
inline
template<class T >
T NetworKit::Point2D< T >::getY ( ) const
inline
template<class T >
T NetworKit::Point2D< T >::length ( ) const
template<class T>
Point2D< T > NetworKit::Point2D< T >::operator+ ( const Point2D< T > &  other)
template<class T>
Point2D< T > & NetworKit::Point2D< T >::operator+= ( const Point2D< T > &  p)
template<class T>
Point2D< T > NetworKit::Point2D< T >::operator- ( const Point2D< T > &  other)
template<class T>
Point2D< T > & NetworKit::Point2D< T >::operator-= ( const Point2D< T > &  p)
template<class T >
T & NetworKit::Point2D< T >::operator[] ( const index  i)
inline
template<class T>
Point2D< T > & NetworKit::Point2D< T >::scale ( const T  factor)
template<class T>
T NetworKit::Point2D< T >::squaredDistance ( const Point2D< T > &  p) const
template<class T >
T NetworKit::Point2D< T >::squaredLength ( ) const

Member Data Documentation

template<class T>
index NetworKit::Point2D< T >::indice
protected
template<class T>
T NetworKit::Point2D< T >::x
protected
template<class T>
T NetworKit::Point2D< T >::y
protected

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