File indexing completed on 2025-01-18 09:13:07
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 struct SpacePoint {
0012 float m_x;
0013 float m_y;
0014 float m_z;
0015 float m_r;
0016 int surface;
0017 float varianceR;
0018 float varianceZ;
0019 float x() const { return m_x; }
0020 float y() const { return m_y; }
0021 float z() const { return m_z; }
0022 float r() const { return m_r; }
0023 };
0024
0025 bool operator==(SpacePoint a, SpacePoint b) {
0026 if (fabs(a.m_x - b.m_x) < 1e-6 && fabs(a.m_y - b.m_y) < 1e-6 &&
0027 fabs(a.m_z - b.m_z) < 1e-6) {
0028 return true;
0029 } else {
0030 return false;
0031 }
0032 }