@private Validates a Data3D and throws on error.
| 18 | /// @private |
| 19 | /// Validates a Data3D and throws on error. |
| 20 | constexpr void _validateData3D( const Data3D &inData3D ) |
| 21 | { |
| 22 | if ( inData3D.pointFields.pointRangeNodeType == NumericalNodeType::Integer ) |
| 23 | { |
| 24 | throw E57_EXCEPTION2( ErrorInvalidNodeType, "pointRangeNodeType cannot be Integer" ); |
| 25 | } |
| 26 | |
| 27 | if ( inData3D.pointFields.angleNodeType == NumericalNodeType::Integer ) |
| 28 | { |
| 29 | throw E57_EXCEPTION2( ErrorInvalidNodeType, "angleNodeType cannot be Integer" ); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | /// To avoid exposing M_PI, we define the constructor here. |
| 34 | SphericalBounds::SphericalBounds() |