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 27 of file Point.hpp.
 
 | 
| template<typename orig , typename exp1 , typename exp2 , unsigned int op>  | 
| __device__ __host__  | Point (const point_expression_op< orig, exp1, exp2, op > &p_exp) | 
|   | Evaluate the expression and save the result on the point.  
  | 
|   | 
| __device__ __host__  | Point (const Point< dim, T > &&p) | 
|   | Point constructor from point.  
  | 
|   | 
| __device__ __host__  | Point (const Point< dim, T > &p) | 
|   | Point constructor from point.  
  | 
|   | 
| __device__ __host__  | Point (const T(&p)[dim]) | 
|   | Constructor from an array.  
  | 
|   | 
| __device__ __host__  | Point (T d) | 
|   | Constructor from scalar.  
  | 
|   | 
| template<typename S >  | 
| __device__ __host__  | Point (const Point< dim, S > &p) | 
|   | Point constructor.  
  | 
|   | 
| template<unsigned int d, typename M >  | 
|   | Point (const encapc< d, Point< dim, T >, M > &p) | 
|   | Point constructor.  
  | 
|   | 
| template<typename vmpl >  | 
| __device__ __host__  | Point (const openfpm::detail::multi_array::sub_array_openfpm< T, 1, vmpl > &mar) | 
|   | Point constructor from multi array.  
  | 
|   | 
| template<typename vmpl >  | 
| __device__ __host__  | Point (const openfpm::detail::multi_array::const_sub_array_openfpm< T, 1, vmpl > &mar) | 
|   | Point constructor from multi array.  
  | 
|   | 
| __device__ __host__  | Point (std::initializer_list< T > p1) | 
|   | Constructor from a list.  
  | 
|   | 
| __device__ __host__  | Point () | 
|   | Default contructor.  
  | 
|   | 
| __device__ __host__ const T &  | get (unsigned int i) const | 
|   | Get coordinate.  
  | 
|   | 
| T  | get_vtk (size_t i) const | 
|   | Get coordinate.  
  | 
|   | 
| __device__ __host__ T &  | get (unsigned int i) | 
|   | Get coordinate.  
  | 
|   | 
| __device__ __host__ T &  | operator[] (unsigned int i) | 
|   | Get the component i.  
  | 
|   | 
| __device__ __host__ const T &  | operator[] (unsigned int i) const | 
|   | Get the component i.  
  | 
|   | 
| __device__ __host__ T  | norm () const | 
|   | norm of the vector  
  | 
|   | 
| __device__ __host__ T  | distance (const Point< dim, T > &q) const | 
|   | It calculate the distance between 2 points.  
  | 
|   | 
| T  | distance2 (const Point< dim, T > &q) const | 
|   | It calculate the square distance between 2 points.  
  | 
|   | 
| __device__ __host__ void  | zero () | 
|   | Set to zero the point coordinate.  
  | 
|   | 
| void  | one () | 
|   | Set to one the point coordinate.  
  | 
|   | 
| std::string  | toPointString () const | 
|   | Convert the point into a string.  
  | 
|   | 
| void  | swap (Point< dim, T > &p) | 
|   | exchange the data of two points  
  | 
|   | 
| __device__ __host__ bool  | operator== (const Point< dim, T > &p) const | 
|   | Check if two points match.  
  | 
|   | 
| __device__ __host__ bool  | operator!= (const Point< dim, T > &p) const | 
|   | Check if two points match.  
  | 
|   | 
| std::string  | to_string () const | 
|   | Return the string with the point coordinate.  
  | 
|   | 
| std::string  | toString () const | 
|   | Return the string with the point coordinate.  
  | 
|   | 
| __device__ __host__ T &  | value (size_t i) | 
|   | Return the reference to the value at coordinate i.  
  | 
|   | 
| __device__ __host__ T  | value (size_t i) const | 
|   | Return the value at coordinate i.  
  | 
|   | 
| T(&  | asArray ())[dim] | 
|   | Return the coordinated of the point as reference array.  
  | 
|   | 
| template<typename A >  | 
| Point< dim, A >  | convertPoint () const | 
|   | 
| template<typename orig , typename exp1 , typename exp2 , unsigned int op>  | 
| __device__ __host__ Point< dim, T > &  | operator= (const point_expression_op< orig, exp1, exp2, op > &p_exp) | 
|   | Fill the vector with the evaluated expression.  
  | 
|   | 
| template<typename any >  | 
| __device__ __host__ Point< dim, T > &  | operator= (const point_expression< any > &p_exp) | 
|   | Fill the vector property with the evaluated expression.  
  | 
|   | 
| __device__ __host__ Point< dim, T > &  | operator= (const T(&p)[dim]) | 
|   | Fill the point with the value specified in the array.  
  | 
|   | 
| template<typename T1 , typename check  = typename std::enable_if<std::is_const<T1>::value == false>::type>  | 
| __device__ __host__ Point< dim, T > &  | operator= (const point_expression< const T1[dim]> &p_exp) | 
|   | Fill the vector property with the evaluated expression.  
  | 
|   | 
| template<typename aT >  | 
| __device__ __host__ Point< dim, T >  | operator/ (const aT(&ar)[dim]) | 
|   | divide each component by an array  
  | 
|   | 
| template<typename aT >  | 
| __device__ __host__ Point< dim, T >  | operator/= (const aT c) | 
|   | divide each component by a constant  
  | 
|   | 
| __device__ __host__ Point< dim, T > &  | operator= (T d) | 
|   | Fill the vector property with some value.  
  | 
|   | 
| __device__ __host__ Point< dim, T > &  | operator= (const Point< dim, T > &p) | 
|   | operator= between points  
  | 
|   | 
| __device__ __host__ Point< dim, T > &  | operator-= (const Point< dim, T > &p) | 
|   | Subtract two points.  
  | 
|   | 
| __device__ __host__ Point< dim, T > &  | operator+= (const Point< dim, T > &p) | 
|   | Sum two points.  
  | 
|   | 
| __device__ __host__ void  | init () const | 
|   | Do nothing stub operation.  
  | 
|   |