test equality of coordinate systems
| 76 | |
| 77 | /// test equality of coordinate systems |
| 78 | bool equal(const CoordinateSystem& left, const CoordinateSystem& right) { |
| 79 | bool result = false; |
| 80 | switch (left.value()) { |
| 81 | case CoordinateSystem::Absolute: |
| 82 | result = (right == CoordinateSystem::Absolute); |
| 83 | break; |
| 84 | case CoordinateSystem::Relative: |
| 85 | result = (right == CoordinateSystem::Relative); |
| 86 | break; |
| 87 | } |
| 88 | return result; |
| 89 | } |
| 90 | |
| 91 | /// constructor with an EnergyPlus Workspace |
| 92 | GeometryTranslator::GeometryTranslator(const openstudio::Workspace& workspace) : m_workspace(workspace) {} |