| 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(); |
nothing calls this directly
no test coverage detected