36 if (edgeX > 9E5 && edgeY > 9E5 && xErr > 9E5 && yErr > 9E5)
37 return std::make_pair(999999, 999999);
42 if (edgeX < 0 && edgeY < 0) {
51 if (edgeX < 0 && edgeY > 0) {
55 if (edgeX > 0 && edgeY < 0) {
59 if (edgeX > 0 && edgeY > 0) {
60 distance =
sqrt(edgeX * edgeX + edgeY * edgeY);
61 error = distance ?
sqrt(edgeX * edgeX * xErr * xErr + edgeY * edgeY * yErr * yErr) / fabs(distance) : 0;
64 return std::make_pair(distance, error);
int station() const
Return the station number.
std::pair< float, float > getDistancePair(float edgeX, float edgeY, float xErr, float yErr) const