MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / equal

Function equal

src/energyplus/GeometryTranslator.cpp:78–89  ·  view source on GitHub ↗

test equality of coordinate systems

Source from the content-addressed store, hash-verified

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) {}

Calls 1

valueMethod · 0.45

Tested by 1

TEST_FFunction · 0.40