| 194 | } |
| 195 | |
| 196 | openstudio::Transformation GlareSensor_Impl::transformation() const { |
| 197 | Vector3d origin(this->positionXCoordinate(), this->positionYCoordinate(), this->positionZCoordinate()); |
| 198 | |
| 199 | EulerAngles angles(degToRad(this->psiRotationAroundXAxis()), degToRad(this->thetaRotationAroundYAxis()), |
| 200 | degToRad(this->phiRotationAroundZAxis())); |
| 201 | |
| 202 | Transformation result = Transformation::translation(origin) * Transformation::rotation(angles); |
| 203 | |
| 204 | return result; |
| 205 | } |
| 206 | |
| 207 | bool GlareSensor_Impl::setTransformation(const openstudio::Transformation& transformation) { |
| 208 | Vector3d translation = transformation.translation(); |
nothing calls this directly
no test coverage detected