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

Method transformation

src/model/DaylightingControl.cpp:327–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 }
326
327 openstudio::Transformation DaylightingControl_Impl::transformation() const {
328 Vector3d origin(this->positionXCoordinate(), this->positionYCoordinate(), this->positionZCoordinate());
329
330 EulerAngles angles(degToRad(this->psiRotationAroundXAxis()), degToRad(this->thetaRotationAroundYAxis()),
331 degToRad(this->phiRotationAroundZAxis()));
332
333 Transformation result = Transformation::translation(origin) * Transformation::rotation(angles);
334
335 return result;
336 }
337
338 bool DaylightingControl_Impl::setTransformation(const openstudio::Transformation& transformation) {
339 Vector3d translation = transformation.translation();

Callers

nothing calls this directly

Calls 7

positionXCoordinateMethod · 0.95
positionYCoordinateMethod · 0.95
positionZCoordinateMethod · 0.95
degToRadFunction · 0.85

Tested by

no test coverage detected