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

Method setTransformation

src/model/IlluminanceMap.cpp:235–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 bool IlluminanceMap_Impl::setTransformation(const openstudio::Transformation& transformation) {
236 bool test;
237
238 Vector3d translation = transformation.translation();
239 this->setOriginXCoordinate(translation.x());
240 this->setOriginYCoordinate(translation.y());
241 this->setOriginZCoordinate(translation.z());
242
243 EulerAngles eulerAngles = transformation.eulerAngles();
244 test = this->setPsiRotationAroundXAxis(radToDeg(eulerAngles.psi()));
245 OS_ASSERT(test);
246 test = this->setThetaRotationAroundYAxis(radToDeg(eulerAngles.theta()));
247 OS_ASSERT(test);
248 test = this->setPhiRotationAroundZAxis(radToDeg(eulerAngles.phi()));
249 OS_ASSERT(test);
250
251 return true;
252 }
253
254 std::vector<Point3d> IlluminanceMap_Impl::referencePoints() const {
255 std::vector<Point3d> result;

Callers

nothing calls this directly

Calls 15

setOriginXCoordinateMethod · 0.95
setOriginYCoordinateMethod · 0.95
setOriginZCoordinateMethod · 0.95
radToDegFunction · 0.85
translationMethod · 0.80
eulerAnglesMethod · 0.80
psiMethod · 0.80
thetaMethod · 0.80
phiMethod · 0.80

Tested by

no test coverage detected