]> https://gitweb.dealii.org/ - dealii.git/commitdiff
rename
authorDenis Davydov <davydden@gmail.com>
Mon, 24 Apr 2017 14:56:24 +0000 (16:56 +0200)
committerDenis Davydov <davydden@gmail.com>
Mon, 24 Apr 2017 14:56:24 +0000 (16:56 +0200)
doc/news/changes/minor/20170424DenisDavydov
include/deal.II/base/point.h

index 36a57f5f44be4f3c38341c1be0947e19f93df3f4..376f234947c7bf5913da6d62a3953ed56e018d1f 100644 (file)
@@ -1,4 +1,4 @@
-New: add Point<dim,Number>::squared_distance() which calculates the squared
+New: add Point<dim,Number>::distance_square() which calculates the squared
 Euclidean distance.
 <br>
 (Denis Davydov, 2017/04/24)
index 0f2369b512eb8fa9c1405e54bb971087e7e65f7b..8048390ca19beaf9c11a7d409f2475588e629900 100644 (file)
@@ -231,7 +231,7 @@ public:
    * Return the squared Euclidean distance of <tt>this</tt> point to the point
    * <tt>p</tt>.
    */
-  typename numbers::NumberTraits<Number>::real_type squared_distance (const Point<dim,Number> &p) const;
+  typename numbers::NumberTraits<Number>::real_type distance_square (const Point<dim,Number> &p) const;
 
   /**
    * @}
@@ -482,7 +482,7 @@ inline
 typename numbers::NumberTraits<Number>::real_type
 Point<dim,Number>::distance (const Point<dim,Number> &p) const
 {
-  return std::sqrt(squared_distance(p));
+  return std::sqrt(distance_square(p));
 }
 
 
@@ -490,7 +490,7 @@ Point<dim,Number>::distance (const Point<dim,Number> &p) const
 template <int dim, typename Number>
 inline
 typename numbers::NumberTraits<Number>::real_type
-Point<dim,Number>::squared_distance (const Point<dim,Number> &p) const
+Point<dim,Number>::distance_square (const Point<dim,Number> &p) const
 {
   Number sum = Number();
   for (unsigned int i=0; i<dim; ++i)

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.