+
+
+ const Vector2d leftPos{0.0, -1.0};
+ const Vector2d rightPos{1.0, -1.0};
+
+ std::vector<double> dotDist;
+
+ for (std::size_t dotIdx = 0; dotIdx < m_posDots.size(); ++dotIdx) {
+ auto& posDot = m_posDots[dotIdx];
+ const Vector2d pos( static_cast<double>(posDot.pos[0]) / m_surface->size(),
+ static_cast<double>(posDot.pos[1]) / m_surface->size() );
+ dotDist.emplace_back( (leftPos - pos).squaredNorm() );
+ dotDist.emplace_back( (rightPos - pos).squaredNorm() );
+ }
+