Branch data Line data Source code
1 : : /* 2 : : * ----------------- BEGIN LICENSE BLOCK --------------------------------- 3 : : * 4 : : * Copyright (C) 2018-2020 Intel Corporation 5 : : * 6 : : * SPDX-License-Identifier: MIT 7 : : * 8 : : * ----------------- END LICENSE BLOCK ----------------------------------- 9 : : */ 10 : : 11 : : /** 12 : : * Generated file 13 : : * @file 14 : : * 15 : : * Generator Version : 11.0.0-1997 16 : : */ 17 : : 18 : : #include "ad/physics/DistanceSquared.hpp" 19 : : #include "ad/physics/Distance.hpp" 20 : : 21 : : /*! 22 : : * @brief namespace ad 23 : : */ 24 : : namespace ad { 25 : : /*! 26 : : * @brief namespace physics 27 : : */ 28 : : namespace physics { 29 : : 30 : : const double DistanceSquared::cMinValue = -1e18; 31 : : 32 : : const double DistanceSquared::cMaxValue = 1e18; 33 : : 34 : : const double DistanceSquared::cPrecisionValue = 1e-6; 35 : : 36 : : } // namespace physics 37 : : } // namespace ad 38 : : namespace std { 39 : : 40 : 2 : ::ad::physics::Distance sqrt(::ad::physics::DistanceSquared const other) 41 : : { 42 : 2 : ::ad::physics::Distance result(std::sqrt(static_cast<double>(other))); 43 [ + + ]: 2 : result.ensureValid(); 44 : 1 : return result; 45 : : } 46 : : 47 : : } // namespace std