| 738 | } |
| 739 | |
| 740 | openstudio::Point3dVector ForwardTranslator::getReferencePoints(const openstudio::model::IlluminanceMap& map) { |
| 741 | Transformation buildingTransformation; |
| 742 | OptionalBuilding building = map.model().getOptionalUniqueModelObject<Building>(); |
| 743 | if (building) { |
| 744 | buildingTransformation = building->transformation(); |
| 745 | } |
| 746 | |
| 747 | Transformation spaceTransformation; |
| 748 | OptionalSpace space = map.space(); |
| 749 | if (space) { |
| 750 | spaceTransformation = space->transformation(); |
| 751 | } |
| 752 | |
| 753 | // convert vertices to absolute coordinates |
| 754 | return buildingTransformation * spaceTransformation * map.transformation() * map.referencePoints(); |
| 755 | } |
| 756 | |
| 757 | openstudio::Vector3d ForwardTranslator::getSensorVector(const openstudio::model::IlluminanceMap& map) { |
| 758 | Transformation buildingTransformation; |
nothing calls this directly
no test coverage detected