|
namespace ewalena
0.2.15
ewalena is not an acronym
|
#include <include/ewalena/base/point.h>


Public Member Functions | |
| void | clone (const Point< dim, ValueType > &p) |
| ValueType | l2_norm (const Point< dim, ValueType > &p=Point< dim, ValueType >()) const |
| void | operator*= (const ValueType &scalar) |
| void | operator+= (const Point< dim, ValueType > &p) |
| void | operator-= (const Point< dim, ValueType > &p) |
| void | operator/= (const ValueType &scalar) |
| ValueType | operator= (const unsigned int i) |
| const ValueType | operator= (const unsigned int i) const |
| Point () | |
| Point (const ValueType x) | |
| Point (const ValueType x, const ValueType y) | |
| Point (const ValueType x, const ValueType y, const ValueType z) | |
| ~Point () | |
Protected Member Functions | |
| ewalena::Tensor< dim, 1, ValueType > | operator* () |
| const ewalena::Tensor< dim, 1, ValueType > | operator* () const |
A class that describes a Euclidean point
.
| ewalena::Point< dim, ValueType >::Point | ( | ) | [inline] |
Constructor.
| ewalena::Point< dim, ValueType >::Point | ( | const ValueType | x | ) | [inline, explicit] |
Explicit constructor for 1d.
| ewalena::Point< dim, ValueType >::Point | ( | const ValueType | x, |
| const ValueType | y | ||
| ) | [inline, explicit] |
Explicit constructor for 2d.
| ewalena::Point< dim, ValueType >::Point | ( | const ValueType | x, |
| const ValueType | y, | ||
| const ValueType | z | ||
| ) | [inline, explicit] |
Explicit constructor for 3d.
| ewalena::Point< dim, ValueType >::~Point | ( | ) |
Destructor.
| void ewalena::Point< dim, ValueType >::clone | ( | const Point< dim, ValueType > & | p | ) | [inline] |
Clone this point.
| ValueType ewalena::Point< dim, ValueType >::l2_norm | ( | const Point< dim, ValueType > & | p = Point< dim, ValueType >() | ) | const |
Return the
-norm of this vector with respect to the point p (also called the Eucleadian distnace between this point and point p). The default arguemnt is a null point,
, and thus returns the Eucleadian distance of this point to the origin.
| ewalena::Tensor<dim, 1, ValueType> ewalena::Point< dim, ValueType >::operator* | ( | ) | [inline, protected] |
Read-write access operator to the underlying rank one tensor field base.
Reimplemented from ewalena::Tensor< dim, 1, ValueType >.
| const ewalena::Tensor<dim, 1, ValueType> ewalena::Point< dim, ValueType >::operator* | ( | ) | const [inline, protected] |
Read only access operator to the underlying rank one tensor field base.
Reimplemented from ewalena::Tensor< dim, 1, ValueType >.
| void ewalena::Point< dim, ValueType >::operator*= | ( | const ValueType & | scalar | ) | [inline] |
Inline multiplication operator. Multiply (scale) this point by a scalar value.
Reimplemented from ewalena::Tensor< dim, 1, ValueType >.
| void ewalena::Point< dim, ValueType >::operator+= | ( | const Point< dim, ValueType > & | p | ) | [inline] |
Inline addition operator. Add p to this point.
| void ewalena::Point< dim, ValueType >::operator-= | ( | const Point< dim, ValueType > & | p | ) | [inline] |
Inline subtraction operator. Subtract p from this point.
| void ewalena::Point< dim, ValueType >::operator/= | ( | const ValueType & | scalar | ) | [inline] |
Inline division operator. Divide this point by a scalar value.
Reimplemented from ewalena::Tensor< dim, 1, ValueType >.
| ValueType ewalena::Point< dim, ValueType >::operator= | ( | const unsigned int | i | ) | [inline] |
Read-write access operator to the ith index of this point.
| const ValueType ewalena::Point< dim, ValueType >::operator= | ( | const unsigned int | i | ) | const [inline] |
Read only access operator to the ith index of this point.
1.7.6.1