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

Method transformation

src/model/GlareSensor.cpp:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 }
195
196 openstudio::Transformation GlareSensor_Impl::transformation() const {
197 Vector3d origin(this->positionXCoordinate(), this->positionYCoordinate(), this->positionZCoordinate());
198
199 EulerAngles angles(degToRad(this->psiRotationAroundXAxis()), degToRad(this->thetaRotationAroundYAxis()),
200 degToRad(this->phiRotationAroundZAxis()));
201
202 Transformation result = Transformation::translation(origin) * Transformation::rotation(angles);
203
204 return result;
205 }
206
207 bool GlareSensor_Impl::setTransformation(const openstudio::Transformation& transformation) {
208 Vector3d translation = transformation.translation();

Callers

nothing calls this directly

Calls 7

positionXCoordinateMethod · 0.95
positionYCoordinateMethod · 0.95
positionZCoordinateMethod · 0.95
degToRadFunction · 0.85

Tested by

no test coverage detected