|
| | Point (const double x=0.0, const double y=0.0, const double z=0.0) |
| | Point (std::size_t dim, const double *x) |
| | Point (const Array< double > &x) |
| | Point (const Point &p) |
|
| ~Point () |
| | Destructor.
|
| double & | operator[] (std::size_t i) |
| double | operator[] (std::size_t i) const |
| double | x () const |
| double | y () const |
| double | z () const |
| double * | coordinates () |
| const double * | coordinates () const |
| std::array< double, 3 > | array () const |
| Point | operator+ (const Point &p) const |
| Point | operator- (const Point &p) const |
|
const Point & | operator+= (const Point &p) |
| | Add given point.
|
|
const Point & | operator-= (const Point &p) |
| | Subtract given point.
|
|
Point | operator- () |
| | Unary minus.
|
|
Point | operator* (double a) const |
| | Multiplication with scalar.
|
|
const Point & | operator*= (double a) |
| | Incremental multiplication with scalar.
|
|
Point | operator/ (double a) const |
| | Division by scalar.
|
|
const Point & | operator/= (double a) |
| | Incremental division by scalar.
|
|
const Point & | operator= (const Point &p) |
| | Assignment operator.
|
|
bool | operator== (const Point &p) const |
| | Equal to operator.
|
|
bool | operator!= (const Point &p) const |
| | Not equal to operator.
|
| double | squared_distance (const Point &p) const |
| double | distance (const Point &p) const |
| double | norm () const |
| double | squared_norm () const |
| const Point | cross (const Point &p) const |
| double | dot (const Point &p) const |
| Point | rotate (const Point &a, double theta) const |
| std::string | str (bool verbose=false) const |
A Point represents a point in :math:\mathbb{R}^3 with coordinates :math:x, y, z, or alternatively, a vector in :math:\mathbb{R}^3, supporting standard operations like the norm, distances, scalar and vector products etc.