template<unsigned int dim, typename T>
class Point< dim, T >
This class implement the point shape in an N-dimensional space.
- Parameters
-
T | type of the space |
dim | dimensionality |
Definition at line 20 of file Point.hpp.
|
T | get (int i) const |
| Get coordinate. More...
|
|
T & | get (int i) |
| Get coordinate. More...
|
|
T & | operator[] (size_t i) |
| Get the component i. More...
|
|
Point< dim, T > & | operator= (const Point< dim, T > &p) |
| operator= between points More...
|
|
Point< dim, T > | operator* (T c) |
| Multiply each components by a constant. More...
|
|
template<typename aT > |
Point< dim, T > | operator* (const Point< dim, aT > &p) |
| Multiply each components. More...
|
|
Point< dim, T > & | operator-= (const Point< dim, T > &p) |
| Subtract each components. More...
|
|
Point< dim, T > & | operator+= (const Point< dim, T > &p) |
| Sum each components. More...
|
|
T | norm () |
|
template<typename aT > |
Point< dim, T > | operator+ (const Point< dim, aT > &p) |
| Sum each components. More...
|
|
template<typename aT > |
Point< dim, T > | operator/ (const aT(&ar)[dim]) |
| divide each component More...
|
|
template<typename aT > |
Point< dim, T > | operator/ (const aT c) |
| divide each component More...
|
|
Point< dim, T > | operator- (const Point< dim, T > &p) |
| Operator subtraction. More...
|
|
void | zero () |
| Set to zero the point coordinate. More...
|
|
void | one () |
| Set to one the point coordinate. More...
|
|
std::string | toPointString () const |
| Convert the point into a string. More...
|
|
std::string | toString () const |
| Return the string with the point coordinate. More...
|
|
| Point (const Point< dim, T > &&p) |
| Point constructor from point. More...
|
|
| Point (const Point< dim, T > &p) |
| Point constructor from point. More...
|
|
| Point (const T(&p)[dim]) |
| Constructor from an array. More...
|
|
template<typename S > |
| Point (const Point< dim, S > &p) |
| Point constructor. More...
|
|
template<unsigned int d, typename M > |
| Point (const encapc< d, Point< dim, T >, M > &p) |
| Point constructor. More...
|
|
| Point (std::initializer_list< T > p1) |
| Constructor from a list. More...
|
|
| Point () |
| Default contructor.
|
|
T & | value (size_t i) |
| Return the reference to the value at coordinate i. More...
|
|
T | value (size_t i) const |
| Return the value at coordinate i. More...
|
|
T(& | asArray ())[dim] |
| Return the coordinated of the point as reference array. More...
|
|
template<typename A > |
Point< dim, A > | convertPoint () const |
|