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

Method tilt

src/model/PlanarSurface.cpp:244–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 }
243
244 double PlanarSurface_Impl::tilt() const {
245 OptionalVector3d on = outwardNormal();
246 if (!on) {
247 LOG_AND_THROW("Cannot calculate PlanarSurface tilt because there is no outwardNormal.");
248 }
249 Vector3d n = *on;
250 Vector3d up(0.0, 0.0, 1.0);
251 return getAngle(n, up);
252 }
253
254 double PlanarSurface_Impl::azimuth() const {
255 OptionalVector3d on = outwardNormal();

Callers 2

defaultSubSurfaceTypeMethod · 0.80

Calls 1

getAngleFunction · 0.85

Tested by

no test coverage detected