MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / getReferencePoint

Method getReferencePoint

src/radiance/ForwardTranslator.cpp:612–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 4

Point3dClass · 0.50
modelMethod · 0.45
transformationMethod · 0.45
spaceMethod · 0.45

Tested by

no test coverage detected