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

Method setTransformation

src/model/DaylightingControl.cpp:338–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 bool DaylightingControl_Impl::setTransformation(const openstudio::Transformation& transformation) {
339 Vector3d translation = transformation.translation();
340 this->setPositionXCoordinate(translation.x());
341 this->setPositionYCoordinate(translation.y());
342 this->setPositionZCoordinate(translation.z());
343
344 EulerAngles eulerAngles = transformation.eulerAngles();
345 setPsiRotationAroundXAxis(radToDeg(eulerAngles.psi()));
346 setThetaRotationAroundYAxis(radToDeg(eulerAngles.theta()));
347 setPhiRotationAroundZAxis(radToDeg(eulerAngles.phi()));
348
349 return true;
350 }
351
352 bool DaylightingControl_Impl::isPrimaryDaylightingControl() const {
353 bool result = false;

Callers

nothing calls this directly

Calls 12

radToDegFunction · 0.85
translationMethod · 0.80
eulerAnglesMethod · 0.80
psiMethod · 0.80
thetaMethod · 0.80
phiMethod · 0.80
xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected