|
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 > &) |
point of dimension DIM. The class provides facilities of operating on the coordinate of a point.
Constructor taking parameters as the entries of the coordinate.
| double Point< DIM >::length | ( | ) | const |
Length of the vector from the origin to the point.
| Point< DIM >::operator const double * | ( | ) | const |
Casting to double pointer.
| Point< DIM >::operator double * | ( | ) |
Casting to double pointer.
| const double& Point< DIM >::operator[] | ( | int | ) | const |
Acess to entry.
| double& 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.
| std::ostream& operator<< | ( | std::ostream & | , |
| const Point< DIM > & | |||
| ) | [friend] |
Stream output.
| std::istream& operator>> | ( | std::istream & | , |
| Point< DIM > & | |||
| ) | [friend] |
Stream input.
1.7.4