class Point : public Tensor<1,dim>
{
public:
+ /**
+ * Standard constructor. Creates an origin.
+ */
+ Point ();
/**
* Constructor. Initialize all entries
- * to zero if @p{initialize==true}; this
- * is the default behaviour.
+ * to zero if @p{initialize==true}.
*/
- explicit Point (const bool initialize = true);
+ explicit Point (const bool initialize);
/**
* Convert a tensor to a point. Since no
* @p{operator +=} instead since this does not
* need to copy a point at least once.
*/
- Point<dim> operator + (const Tensor<1,dim> &) const;
+ Point<dim> operator + (const Tensor<1,dim>&) const;
/**
* Subtract two point vectors. If possible, use
* @p{operator +=} instead since this does not
* need to copy a point at least once.
*/
- Point<dim> operator - (const Tensor<1,dim> &) const;
+ Point<dim> operator - (const Tensor<1,dim>&) const;
/**
* The opposite vector.
/*------------------------------- Inline functions: Point ---------------------------*/
+template <int dim>
+inline
+Point<dim>::Point ()
+{};
+
+
+
template <int dim>
inline
Point<dim>::Point (const bool initialize) :