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