]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Improve documentation somewhat.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 May 2013 15:31:07 +0000 (15:31 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 May 2013 15:31:07 +0000 (15:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@29504 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/point.h

index b91947b89f9ccd83444519d99eb37093d47e8719..c33ea938c8d2536fc41a85d83a77c91e9137035a 100644 (file)
@@ -53,21 +53,22 @@ class Point : public Tensor<1,dim,Number>
 public:
   /**
    * Standard constructor. Creates
-   * an origin.
+   * an object that corresponds to the origin, i.e., all coordinates
+   * are set to zero.
    */
   Point ();
 
   /**
    * Constructor. Initialize all
    * entries to zero if
-   * <tt>initialize==true</tt>.
+   * <tt>initialize==true</tt> (in which case it is equivalent to the default
+   * constructor) or leaves the elements uninitialized if
+   * <tt>initialize==false</tt>.
    */
   explicit Point (const bool initialize);
 
   /**
-   * Convert a tensor to a point. Since no
-   * additional data is inside a point,
-   * this is ok.
+   * Convert a tensor to a point.
    */
   Point (const Tensor<1,dim,Number> &);
 
@@ -76,7 +77,8 @@ public:
    *  points. This function is only
    *  implemented for <tt>dim==1</tt> since
    *  the usage is considered unsafe for
-   *  points with <tt>dim!=1</tt>.
+   *  points with <tt>dim!=1</tt> as it would leave some components
+   *  of the point coordinates uninitialized.
    */
   explicit Point (const Number x);
 
@@ -85,18 +87,25 @@ public:
    *  points. This function is only
    *  implemented for <tt>dim==2</tt> since
    *  the usage is considered unsafe for
-   *  points with <tt>dim!=2</tt>.
+   *  points with <tt>dim!=2</tt> as it would leave some components
+   *  of the point coordinates uninitialized (if dim>2) or would
+   *  not use some arguments (if dim<2).
    */
-  Point (const Number x, const Number y);
+  Point (const Number x,
+         const Number y);
 
   /**
    *  Constructor for three dimensional
    *  points. This function is only
    *  implemented for <tt>dim==3</tt> since
    *  the usage is considered unsafe for
-   *  points with <tt>dim!=3</tt>.
+   *  points with <tt>dim!=3</tt> as it would leave some components
+   *  of the point coordinates uninitialized (if dim>3) or would
+   *  not use some arguments (if dim<3).
    */
-  Point (const Number x, const Number y, const Number z);
+  Point (const Number x,
+         const Number y,
+         const Number z);
 
   /**
    * Return a unit vector in

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.