reviver::dpoint< NumType, D > Class Template Reference

Main d dimensional Point Class. More...

#include <dpoint.hpp>

List of all members.

Public Types

typedef NumType NT
typedef InternalNumberType<
NumType >::__INT 
__INT

Public Member Functions

void move2origin ()
 dpoint ()
 dpoint (NumType x0)
 1 D Point
 dpoint (NumType x0, NumType x1)
 2 D Point
 dpoint (NumType x0, NumType x1, NumType x2)
 3 D Point
 dpoint (NumType ax[])
 Array Initialization.
 dpoint (const dpoint< NumType, D > &p)
 Initialization from another point : Copy Constructor.
template<class OtherNumType>
 dpoint (const dpoint< OtherNumType, D > &p)
 Automatic type conversions of points.
 ~dpoint ()
int dim () const
double sqr_dist (const dpoint< NumType, D > q) const
double distance (const dpoint< NumType, D > q) const
__INT dotprod (const dpoint< NumType, D > q) const
__INT sqr_length (void) const
void normalize (void)
NumType & operator[] (int i)
NumType operator[] (int i) const
dpointoperator= (const dpoint< NumType, D > &q)

Friends

template<typename NT, unsigned __DIM>
dpoint< NT, __DIM > operator- (const dpoint< NT, __DIM > &p, const dpoint< NT, __DIM > &q)
template<typename NT, unsigned __DIM>
dpoint< NT, __DIM > operator+ (const dpoint< NT, __DIM > &p, const dpoint< NT, __DIM > &q)
template<typename NT, unsigned __DIM>
bool operator== (const dpoint< NT, __DIM > &p, const dpoint< NT, __DIM > &q)
template<typename NT, unsigned __DIM>
bool operator!= (const dpoint< NT, __DIM > &p, const dpoint< NT, __DIM > &q)
template<typename __NT, unsigned __DIM>
void iswap (dpoint< __NT, __DIM > &p, dpoint< __NT, __DIM > &q)


Detailed Description

template<typename NumType = double, unsigned D = 3>
class reviver::dpoint< NumType, D >

Main d dimensional Point Class.

Definition at line 319 of file dpoint.hpp.


Member Typedef Documentation

template<typename NumType = double, unsigned D = 3>
typedef InternalNumberType<NumType>::__INT reviver::dpoint< NumType, D >::__INT
 

Definition at line 328 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
typedef NumType reviver::dpoint< NumType, D >::NT
 

Definition at line 327 of file dpoint.hpp.


Constructor & Destructor Documentation

template<typename NumType = double, unsigned D = 3>
reviver::dpoint< NumType, D >::dpoint  )  [inline]
 

Definition at line 336 of file dpoint.hpp.

References Assert.

template<typename NumType = double, unsigned D = 3>
reviver::dpoint< NumType, D >::dpoint NumType  x0  )  [inline]
 

1 D Point

Definition at line 342 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
reviver::dpoint< NumType, D >::dpoint NumType  x0,
NumType  x1
[inline]
 

2 D Point

Definition at line 344 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
reviver::dpoint< NumType, D >::dpoint NumType  x0,
NumType  x1,
NumType  x2
[inline]
 

3 D Point

Definition at line 346 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
reviver::dpoint< NumType, D >::dpoint NumType  ax[]  )  [inline]
 

Array Initialization.

Definition at line 348 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
reviver::dpoint< NumType, D >::dpoint const dpoint< NumType, D > &  p  )  [inline]
 

Initialization from another point : Copy Constructor.

Definition at line 350 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
template<class OtherNumType>
reviver::dpoint< NumType, D >::dpoint const dpoint< OtherNumType, D > &  p  )  [inline, explicit]
 

Automatic type conversions of points.

Only allowed if the conversion is specified explicitly by the programmer.

Definition at line 356 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
reviver::dpoint< NumType, D >::~dpoint  )  [inline]
 

Definition at line 359 of file dpoint.hpp.


Member Function Documentation

template<typename NumType = double, unsigned D = 3>
int reviver::dpoint< NumType, D >::dim  )  const [inline]
 

Definition at line 361 of file dpoint.hpp.

template<typename NumType, unsigned D>
double reviver::dpoint< NumType, D >::distance const dpoint< NumType, D >  q  )  const [inline]
 

Definition at line 495 of file dpoint.hpp.

template<typename NumType, unsigned D>
dpoint< NumType, D >::__INT reviver::dpoint< NumType, D >::dotprod const dpoint< NumType, D >  q  )  const [inline]
 

Definition at line 502 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
void reviver::dpoint< NumType, D >::move2origin  )  [inline]
 

Definition at line 334 of file dpoint.hpp.

template<typename NumType, unsigned D>
void reviver::dpoint< NumType, D >::normalize void   )  [inline]
 

Definition at line 393 of file dpoint.hpp.

References reviver::dpoint< NumType, D >::sqr_length().

template<typename NumType, unsigned D>
dpoint< NumType, D > & reviver::dpoint< NumType, D >::operator= const dpoint< NumType, D > &  q  )  [inline]
 

Definition at line 468 of file dpoint.hpp.

References Assert.

template<typename NumType, unsigned D>
NumType reviver::dpoint< NumType, D >::operator[] int  i  )  const [inline]
 

Definition at line 477 of file dpoint.hpp.

template<typename NumType, unsigned D>
NumType & reviver::dpoint< NumType, D >::operator[] int  i  )  [inline]
 

Definition at line 482 of file dpoint.hpp.

template<typename NumType, unsigned D>
double reviver::dpoint< NumType, D >::sqr_dist const dpoint< NumType, D >  q  )  const [inline]
 

Definition at line 489 of file dpoint.hpp.

template<typename NumType, unsigned D>
dpoint< NumType, D >::__INT reviver::dpoint< NumType, D >::sqr_length void   )  const [inline]
 

Definition at line 508 of file dpoint.hpp.

Referenced by reviver::dpoint< NumType, D >::normalize().


Friends And Related Function Documentation

template<typename NumType = double, unsigned D = 3>
template<typename __NT, unsigned __DIM>
void iswap dpoint< __NT, __DIM > &  p,
dpoint< __NT, __DIM > &  q
[friend]
 

template<typename NumType = double, unsigned D = 3>
template<typename NT, unsigned __DIM>
bool operator!= const dpoint< NT, __DIM > &  p,
const dpoint< NT, __DIM > &  q
[friend]
 

Definition at line 445 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
template<typename NT, unsigned __DIM>
dpoint<NT,__DIM> operator+ const dpoint< NT, __DIM > &  p,
const dpoint< NT, __DIM > &  q
[friend]
 

Definition at line 421 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
template<typename NT, unsigned __DIM>
dpoint<NT,__DIM> operator- const dpoint< NT, __DIM > &  p,
const dpoint< NT, __DIM > &  q
[friend]
 

Definition at line 429 of file dpoint.hpp.

template<typename NumType = double, unsigned D = 3>
template<typename NT, unsigned __DIM>
bool operator== const dpoint< NT, __DIM > &  p,
const dpoint< NT, __DIM > &  q
[friend]
 

Definition at line 439 of file dpoint.hpp.


The documentation for this class was generated from the following file:
Generated on Fri Nov 3 21:59:03 2006 for Triangle++ by  doxygen 1.4.6