|
AFEPack
|
#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< DIM > | midpoint (const Point< DIM > &, const Point< DIM > &) |
| double | distance (const Point< DIM > &, const Point< DIM > &) |
| Point< DIM > | barycenter (const std::vector< Point< DIM > > &, const double *) |
| Point< DIM > | operator+ (const Point< DIM > &, const Point< DIM > &) |
| Point< DIM > | operator- (const Point< DIM > &, const Point< DIM > &) |
| std::istream & | operator>> (std::istream &, Point< DIM > &) |
| std::ostream & | operator<< (std::ostream &, const Point< DIM > &) |
| afepack::Point< DIM >::Point | ( | ) |
Default constructor.
| afepack::Point< DIM >::Point | ( | const double * | ) |
Constructor with data from a double array.
| afepack::Point< DIM >::Point | ( | const Point< DIM > & | ) |
Copy constructor.
| afepack::Point< DIM >::Point | ( | double | , |
| ... | |||
| ) |
Constructor taking parameters as the entries of the coordinate.
| afepack::Point< DIM >::~Point | ( | ) |
Destructor.
| double afepack::Point< DIM >::length | ( | ) | const |
Length of the vector from the origin to the point.
| afepack::Point< DIM >::operator const double * | ( | ) | const |
Casting to double pointer.
| afepack::Point< DIM >::operator double * | ( | ) |
Casting to double pointer.
| Point<DIM>& afepack::Point< DIM >::operator*= | ( | const double & | ) |
| Point<DIM>& afepack::Point< DIM >::operator/= | ( | const double & | ) |
Copy a point
| const double& afepack::Point< DIM >::operator[] | ( | int | ) | const |
Acess to entry.
| double& afepack::Point< DIM >::operator[] | ( | int | ) |
Acess to entry.
| Point<DIM> barycenter | ( | const std::vector< Point< DIM > > & | , |
| const double * | |||
| ) | [friend] |
The middle point of two points.
The middle point of two points.
Add the coordinate of two point together.
Minus the coordinate.
Stream output.
Stream input.
double afepack::Point< DIM >::x[DIM] [private] |
Coordinate of the point.
1.7.6.1