| 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(); |
no test coverage detected