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

Method setTransformation

src/model/GlareSensor.cpp:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 bool GlareSensor_Impl::setTransformation(const openstudio::Transformation& transformation) {
208 Vector3d translation = transformation.translation();
209 this->setPositionXCoordinate(translation.x());
210 this->setPositionYCoordinate(translation.y());
211 this->setPositionZCoordinate(translation.z());
212
213 EulerAngles eulerAngles = transformation.eulerAngles();
214 setPsiRotationAroundXAxis(radToDeg(eulerAngles.psi()));
215 setThetaRotationAroundYAxis(radToDeg(eulerAngles.theta()));
216 setPhiRotationAroundZAxis(radToDeg(eulerAngles.phi()));
217
218 return true;
219 }
220
221 bool GlareSensor_Impl::aimAt(const Point3d& target) {
222 Point3d position = this->position();

Callers

nothing calls this directly

Calls 12

radToDegFunction · 0.85
translationMethod · 0.80
eulerAnglesMethod · 0.80
psiMethod · 0.80
thetaMethod · 0.80
phiMethod · 0.80
xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected