PPL Logo

Point_2< T > Class Template Reference

#include <mapbasic.h>

Inheritance diagram for Point_2< T >:

Inheritance graph
[legend]
Collaboration diagram for Point_2< T >:

Collaboration graph
[legend]

Public Member Functions

 Point_2 ()
 Point_2 (Origin)
 Point_2 (T t)
 Point_2 (T a, T b)
T & operator[] (const int i)
const T & operator[] (const int i) const
Point_2operator+= (const Vector_2< T > &v)
 Assign operators.
Point_2operator-= (const Vector_2< T > &v)
Point_2 operator+ (const Vector_2< T > &v) const
 Arithmatic operators.
Point_2 operator- (const Vector_2< T > &v) const
Vector_2< T > operator- (const Point_2 &v) const
bool operator== (const Point_2 &p) const
bool operator!= (const Point_2 &p) const
bool operator< (const Point_2 &v) const
bool is_origin () const

Detailed Description

template<class T>
class Point_2< T >

Definition at line 253 of file mapbasic.h.


Constructor & Destructor Documentation

template<class T>
Point_2< T >::Point_2 (  )  [inline]

Definition at line 255 of file mapbasic.h.

Referenced by Point_2< T >::operator+(), and Point_2< T >::operator-().

Here is the caller graph for this function:

template<class T>
Point_2< T >::Point_2 ( Origin   )  [inline]

Definition at line 256 of file mapbasic.h.

template<class T>
Point_2< T >::Point_2 ( t  )  [inline, explicit]

Definition at line 257 of file mapbasic.h.

template<class T>
Point_2< T >::Point_2 ( a,
b 
) [inline]

Definition at line 258 of file mapbasic.h.


Member Function Documentation

template<class T>
T& Point_2< T >::operator[] ( const int  i  )  [inline]

Reimplemented from Vector_2< T >.

Definition at line 259 of file mapbasic.h.

References Vector_2< T >::_x.

template<class T>
const T& Point_2< T >::operator[] ( const int  i  )  const [inline]

Definition at line 260 of file mapbasic.h.

References Vector_2< T >::_x.

template<class T>
Point_2& Point_2< T >::operator+= ( const Vector_2< T > &  v  )  [inline]

Assign operators.

Definition at line 265 of file mapbasic.h.

References Vector_2< T >::_x, Vector_2< T >::_y, Vector_2< Type >::x(), and Vector_2< Type >::y().

Here is the call graph for this function:

template<class T>
Point_2& Point_2< T >::operator-= ( const Vector_2< T > &  v  )  [inline]

Definition at line 267 of file mapbasic.h.

References Vector_2< T >::_x, Vector_2< T >::_y, Vector_2< Type >::x(), and Vector_2< Type >::y().

Here is the call graph for this function:

template<class T>
Point_2 Point_2< T >::operator+ ( const Vector_2< T > &  v  )  const [inline]

Arithmatic operators.

Definition at line 271 of file mapbasic.h.

References Vector_2< T >::_x, Vector_2< T >::_y, Point_2< T >::Point_2(), Vector_2< Type >::x(), and Vector_2< Type >::y().

Here is the call graph for this function:

template<class T>
Point_2 Point_2< T >::operator- ( const Vector_2< T > &  v  )  const [inline]

Definition at line 273 of file mapbasic.h.

References Vector_2< T >::_x, Vector_2< T >::_y, Point_2< T >::Point_2(), Vector_2< Type >::x(), and Vector_2< Type >::y().

Here is the call graph for this function:

template<class T>
Vector_2<T> Point_2< T >::operator- ( const Point_2< T > &  v  )  const [inline]

Definition at line 275 of file mapbasic.h.

References Vector_2< T >::_x, Vector_2< T >::_y, Vector_2< Type >::x(), and Vector_2< Type >::y().

Here is the call graph for this function:

template<class T>
bool Point_2< T >::operator== ( const Point_2< T > &  p  )  const [inline]

Definition at line 278 of file mapbasic.h.

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

Here is the call graph for this function:

template<class T>
bool Point_2< T >::operator!= ( const Point_2< T > &  p  )  const [inline]

Definition at line 281 of file mapbasic.h.

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

Here is the call graph for this function:

template<class T>
bool Point_2< T >::operator< ( const Point_2< T > &  v  )  const [inline]

Definition at line 284 of file mapbasic.h.

References Vector_2< Type >::operator<().

Here is the call graph for this function:

template<class T>
bool Point_2< T >::is_origin (  )  const [inline]

Definition at line 287 of file mapbasic.h.

References Vector_2< T >::_x, and Vector_2< T >::_y.


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

Generated on Mon Sep 21 08:28:37 2020 for Charm++ by  doxygen 1.5.5