| 106 | |
| 107 | |
| 108 | bool SbetReader::processOne(PointRef& point) |
| 109 | { |
| 110 | auto radiansToDegrees = [](double radians) { |
| 111 | return radians * 180.0 / M_PI; |
| 112 | }; |
| 113 | for (auto di = m_private->dims.begin(); di != m_private->dims.end(); ++di) |
| 114 | { |
| 115 | double d; |
| 116 | *(m_private->stream) >> d; |
| 117 | Dimension::Id dim = *di; |
| 118 | if (m_private->anglesAsDegrees && sbet::isAngularDimension(dim)) { |
| 119 | d = radiansToDegrees(d); |
| 120 | } |
| 121 | point.setField(dim, d); |
| 122 | } |
| 123 | return (m_private->stream->good()); |
| 124 | } |
| 125 | |
| 126 | |
| 127 | point_count_t SbetReader::read(PointViewPtr view, point_count_t count) |
nothing calls this directly
no test coverage detected