[geometry] fix in variable names

[SVN r81951]
This commit is contained in:
Barend Gehrels
2012-12-14 21:19:49 +00:00
parent 54a64a7e35
commit 30cd790db3

View File

@@ -42,8 +42,8 @@ struct compute_pythagoras
{
static inline T apply(Point1 const& p1, Point2 const& p2)
{
T const c1 = boost::numeric_cast<T>(get<I-1>(p2));
T const c2 = boost::numeric_cast<T>(get<I-1>(p1));
T const c1 = boost::numeric_cast<T>(get<I-1>(p1));
T const c2 = boost::numeric_cast<T>(get<I-1>(p2));
T const d = c1 - c2;
return d * d + compute_pythagoras<Point1, Point2, I-1, T>::apply(p1, p2);
}