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

Method azimuth

src/model/PlanarSurface.cpp:254–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 }
253
254 double PlanarSurface_Impl::azimuth() const {
255 OptionalVector3d on = outwardNormal();
256 if (!on) {
257 LOG_AND_THROW("Cannot calculate PlanarSurface azimuth because there is no outwardNormal.");
258 }
259 Vector3d n = *on;
260 Vector3d north(0.0, 1.0, 0.0);
261 double rawAngle = getAngle(n, north);
262 if (on->x() < 0.0) {
263 return -rawAngle + 2.0 * boost::math::constants::pi<double>();
264 }
265 return rawAngle;
266 }
267
268 boost::optional<double> PlanarSurface_Impl::uFactor() const {
269 return boost::none;

Callers 7

runMethod · 0.80
runMethod · 0.80
osm2iso.rbFile · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
linkExteriorSurfaceMethod · 0.80
translateModelMethod · 0.80

Calls 2

getAngleFunction · 0.85
xMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64