@@ -99,29 +99,29 @@ inline Point circumcenter(
9999
100100struct compare {
101101
102- std::vector<double > const & coords ;
103- std::vector<double > dists ;
102+ std::vector<double > const & m_coords ;
103+ std::vector<double > m_dists ;
104104
105105 compare (std::vector<double > const & coords, const Point& center) :
106- coords (coords)
106+ m_coords (coords)
107107 {
108- size_t n = coords .size () / 2 ;
109- dists .reserve (n);
110- double const *xcoord = coords .data ();
111- double const *ycoord = coords .data () + 1 ;
108+ size_t n = m_coords .size () / 2 ;
109+ m_dists .reserve (n);
110+ double const *xcoord = m_coords .data ();
111+ double const *ycoord = m_coords .data () + 1 ;
112112 while (n--)
113113 {
114- dists .push_back (dist (*xcoord, *ycoord, center.x (), center.y ()));
114+ m_dists .push_back (dist (*xcoord, *ycoord, center.x (), center.y ()));
115115 xcoord += 2 ;
116116 ycoord += 2 ;
117117 }
118118 }
119119
120120 bool operator ()(std::size_t i, std::size_t j)
121121 {
122- const double diff1 = dists [i] - dists [j];
123- const double diff2 = coords [2 * i] - coords [2 * j];
124- const double diff3 = coords [2 * i + 1 ] - coords [2 * j + 1 ];
122+ const double diff1 = m_dists [i] - m_dists [j];
123+ const double diff2 = m_coords [2 * i] - m_coords [2 * j];
124+ const double diff3 = m_coords [2 * i + 1 ] - m_coords [2 * j + 1 ];
125125
126126 // ABELL - Not sure why we're not just checking != 0 here.
127127 if (diff1 > 0.0 || diff1 < 0.0 ) {
0 commit comments