AFEPack
公有类型 | 公有成员 | 私有属性 | 友元
afepack::Point< DIM >模板类参考

#include <Geometry.h>

所有成员的列表。

公有类型

enum  { dim = DIM }

公有成员

 Point ()
 Point (const double *)
 Point (const Point &)
 Point (double,...)
 ~Point ()
Point< DIM > & operator= (const Point< DIM > &)
 operator const double * () const
 operator double * ()
const double & operator[] (int) const
double & operator[] (int)
double length () const
Point< DIM > & operator+= (const Point< DIM > &)
Point< DIM > & operator-= (const Point< DIM > &)
Point< DIM > & operator*= (const double &)
Point< DIM > & operator/= (const double &)

私有属性

double x [DIM]

友元

Point< DIMmidpoint (const Point< DIM > &, const Point< DIM > &)
double distance (const Point< DIM > &, const Point< DIM > &)
Point< DIMbarycenter (const std::vector< Point< DIM > > &, const double *)
Point< DIMoperator+ (const Point< DIM > &, const Point< DIM > &)
Point< DIMoperator- (const Point< DIM > &, const Point< DIM > &)
std::istream & operator>> (std::istream &, Point< DIM > &)
std::ostream & operator<< (std::ostream &, const Point< DIM > &)

template<int DIM>
class afepack::Point< DIM >


成员枚举类型文档

template<int DIM>
anonymous enum
枚举值:
dim 

构造及析构函数文档

template<int DIM>
afepack::Point< DIM >::Point ( )

Default constructor.

template<int DIM>
afepack::Point< DIM >::Point ( const double *  )

Constructor with data from a double array.

template<int DIM>
afepack::Point< DIM >::Point ( const Point< DIM > &  )

Copy constructor.

template<int DIM>
afepack::Point< DIM >::Point ( double  ,
  ... 
)

Constructor taking parameters as the entries of the coordinate.

template<int DIM>
afepack::Point< DIM >::~Point ( )

Destructor.


成员函数文档

template<int DIM>
double afepack::Point< DIM >::length ( ) const

Length of the vector from the origin to the point.

template<int DIM>
afepack::Point< DIM >::operator const double * ( ) const

Casting to double pointer.

template<int DIM>
afepack::Point< DIM >::operator double * ( )

Casting to double pointer.

template<int DIM>
Point<DIM>& afepack::Point< DIM >::operator*= ( const double &  )
template<int DIM>
Point<DIM>& afepack::Point< DIM >::operator+= ( const Point< DIM > &  )
template<int DIM>
Point<DIM>& afepack::Point< DIM >::operator-= ( const Point< DIM > &  )
template<int DIM>
Point<DIM>& afepack::Point< DIM >::operator/= ( const double &  )
template<int DIM>
Point<DIM>& afepack::Point< DIM >::operator= ( const Point< DIM > &  )

Copy a point

template<int DIM>
const double& afepack::Point< DIM >::operator[] ( int  ) const

Acess to entry.

template<int DIM>
double& afepack::Point< DIM >::operator[] ( int  )

Acess to entry.


友元及相关函数文档

template<int DIM>
Point<DIM> barycenter ( const std::vector< Point< DIM > > &  ,
const double *   
) [friend]
template<int DIM>
double distance ( const Point< DIM > &  ,
const Point< DIM > &   
) [friend]

The middle point of two points.

template<int DIM>
Point<DIM> midpoint ( const Point< DIM > &  ,
const Point< DIM > &   
) [friend]

The middle point of two points.

template<int DIM>
Point<DIM> operator+ ( const Point< DIM > &  ,
const Point< DIM > &   
) [friend]

Add the coordinate of two point together.

template<int DIM>
Point<DIM> operator- ( const Point< DIM > &  ,
const Point< DIM > &   
) [friend]

Minus the coordinate.

template<int DIM>
std::ostream& operator<< ( std::ostream &  ,
const Point< DIM > &   
) [friend]

Stream output.

template<int DIM>
std::istream& operator>> ( std::istream &  ,
Point< DIM > &   
) [friend]

Stream input.


成员数据文档

template<int DIM>
double afepack::Point< DIM >::x[DIM] [private]

Coordinate of the point.


该类的文档由以下文件生成: