| 610 | } |
| 611 | |
| 612 | openstudio::Point3d ForwardTranslator::getReferencePoint(const openstudio::model::DaylightingControl& control) { |
| 613 | Transformation buildingTransformation; |
| 614 | OptionalBuilding building = control.model().getOptionalUniqueModelObject<Building>(); |
| 615 | if (building) { |
| 616 | buildingTransformation = building->transformation(); |
| 617 | } |
| 618 | |
| 619 | Transformation spaceTransformation; |
| 620 | OptionalSpace space = control.space(); |
| 621 | if (space) { |
| 622 | spaceTransformation = space->transformation(); |
| 623 | } |
| 624 | |
| 625 | // convert to absolute coordinates |
| 626 | return buildingTransformation * spaceTransformation * control.transformation() * Point3d(0, 0, 0); |
| 627 | } |
| 628 | |
| 629 | openstudio::Vector3d ForwardTranslator::getSensorVector(const openstudio::model::DaylightingControl& control) { |
| 630 | Transformation buildingTransformation; |
nothing calls this directly
no test coverage detected