sqrt | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgsqrt (const FloatTypeT rValue) |
| Real32 | osg::osgsqrt (const Real32 rValue) |
| Real64 | osg::osgsqrt (const Real64 rValue) |
| Real128 | osg::osgsqrt (const Real128 rValue) |
cos | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgcos (const FloatTypeT rValue) |
| Real32 | osg::osgcos (const Real32 rValue) |
| Real64 | osg::osgcos (const Real64 rValue) |
| Real128 | osg::osgcos (const Real128 rValue) |
sin | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgsin (const FloatTypeT rValue) |
| Real32 | osg::osgsin (const Real32 rValue) |
| Real64 | osg::osgsin (const Real64 rValue) |
| Real128 | osg::osgsin (const Real128 rValue) |
tan | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgtan (const FloatTypeT rValue) |
| Real32 | osg::osgtan (const Real32 rValue) |
| Real64 | osg::osgtan (const Real64 rValue) |
| Real128 | osg::osgtan (const Real128 rValue) |
acos | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgacos (const FloatTypeT rValue) |
| Real32 | osg::osgacos (const Real32 rValue) |
| Real64 | osg::osgacos (const Real64 rValue) |
| Real128 | osg::osgacos (const Real128 rValue) |
asin | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgasin (const FloatTypeT rValue) |
| Real32 | osg::osgasin (const Real32 rValue) |
| Real64 | osg::osgasin (const Real64 rValue) |
| Real128 | osg::osgasin (const Real128 rValue) |
atan | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgatan (const FloatTypeT rValue) |
| Real32 | osg::osgatan (const Real32 rValue) |
| Real64 | osg::osgatan (const Real64 rValue) |
| Real128 | osg::osgatan (const Real128 rValue) |
atan2 | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgatan2 (const FloatTypeT rValue1, const FloatTypeT rValue2) |
| Real32 | osg::osgatan2 (const Real32 rValue1, const Real32 rValue2) |
| Real64 | osg::osgatan2 (const Real64 rValue1, const Real64 rValue2) |
| Real128 | osg::osgatan2 (const Real128 rValue1, const Real128 rValue2) |
abs | |
| template<class TypeT> | |
| *TypeT | osg::osgabs (const TypeT rValue) |
| Real32 | osg::osgabs (const Real32 rValue) |
| Real64 | osg::osgabs (const Real64 rValue) |
| Real128 | osg::osgabs (const Real128 rValue) |
pow | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgpow (const FloatTypeT rValue, const FloatTypeT rExp) |
| Real32 | osg::osgpow (const Real32 rValue, const Real32 rExp) |
| Real64 | osg::osgpow (const Real64 rValue, const Real64 rExp) |
| Real128 | osg::osgpow (const Real128 rValue, const Real128 rExp) |
log | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osglog (const FloatTypeT rValue) |
| Real32 | osg::osglog (const Real32 rValue) |
| Real64 | osg::osglog (const Real64 rValue) |
| Real128 | osg::osglog (const Real128 rValue) |
exp | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgexp (const FloatTypeT rValue) |
| Real32 | osg::osgexp (const Real32 rValue) |
| Real64 | osg::osgexp (const Real64 rValue) |
| Real128 | osg::osgexp (const Real128 rValue) |
floor | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgfloor (const FloatTypeT rValue) |
| Real32 | osg::osgfloor (const Real32 rValue) |
| Real64 | osg::osgfloor (const Real64 rValue) |
| Real128 | osg::osgfloor (const Real128 rValue) |
ceil | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgceil (const FloatTypeT rValue) |
| Real32 | osg::osgceil (const Real32 rValue) |
| Real64 | osg::osgceil (const Real64 rValue) |
| Real128 | osg::osgceil (const Real128 rValue) |
finite | |
| template<class FloatTypeT> | |
| UInt32 | osg::osgfinite (const FloatTypeT rValue) |
min / max | |
| template<class TypeT> | |
| TypeT | osg::osgMin (const TypeT lVal, const TypeT rValue) |
| template<class TypeT> | |
| TypeT | osg::osgMax (const TypeT lVal, const TypeT rValue) |
| template<class TypeT> | |
| TypeT | osg::osgClamp (const TypeT minVal, const TypeT val, const TypeT maxVal) |
sgn | |
| template<class TypeT> | |
| Int8 | osg::osgSgn (TypeT val) |
swap | |
| template<class TypeT> | |
| void | osg::osgSwap (TypeT &lVal, TypeT &rValue) |
degree2rad | |
| *Real32 | osg::osgdegree2rad (const Real32 rValue) |
| Real64 | osg::osgdegree2rad (const Real64 rValue) |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgdegree2rad (const FloatTypeT rValue) |
rad2degree | |
| *Real32 | osg::osgrad2degree (const Real32 rValue) |
| Real64 | osg::osgrad2degree (const Real64 rValue) |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::osgrad2degree (const FloatTypeT rValue) |
deg2rad / rad2deg | |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::deg2rad (const FloatTypeT rValue) |
| template<class FloatTypeT> | |
| TypeTraits< FloatTypeT >::RealReturnType | osg::rad2deg (const FloatTypeT rValue) |
ispower2 | |
| *bool | osg::osgispower2 (UInt32 rValue) |
| bool | osg::osgispower2 (Int32 rValue) |
nextpower2 | |
| *UInt32 | osg::osgnextpower2 (UInt32 rValue) |
| Int32 | osg::osgnextpower2 (Int32 rValue) |
| Int64 | osg::osgnextpower2 (Int64 rValue) |
| template<> | |
| UInt64 | osg::osgnextpower2< UInt64 > (UInt64 rValue) |
|
||||||||||
|
Definition at line 61 of file OSGBaseFunctions.inl. Referenced by osg::createNormalVolume(), osg::PointInterface< ValueTypeT, StorageInterfaceT >::dist(), osg::DistanceLOD::draw(), osg::TransformationMatrix< ValueTypeT >::factor(), osg::GroupMCastConnection::initialize(), osg::Line::intersect(), osg::TransformationMatrix< ValueTypeT >::jacobi(), osg::VectorInterface< ValueTypeT, StorageInterfaceT >::length(), osg::QuaternionBase< ValueTypeT >::length(), osg::makeConicalFrustumGeo(), osg::TransformationMatrix< ValueTypeT >::norm2(), osg::FrustumVolume::setPlanes(), osg::QuaternionBase< ValueTypeT >::setValue(), osg::QuaternionBase< ValueTypeT >::setValueAsAxisRad(), osg::TileGeometryLoad::TileGeometryLoad(), osg::FresnelMaterial::updateFresnel(), and osg::TileGeometryLoad::updateGeometry(). 00062 { 00063 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00064 00065 return osgsqrt(RealType(rValue)); 00066 }
|
|
|
Definition at line 72 of file OSGBaseFunctions.inl. 00073 { 00074 #ifdef OSG_USE_STDMATH 00075 return std::sqrt(rValue); 00076 #elif defined(OSG_HAS_FLOATMATH) 00077 return sqrtf(rValue); 00078 #else 00079 return (Real32) sqrt((Real32) rValue); 00080 #endif 00081 }
|
|
|
Definition at line 87 of file OSGBaseFunctions.inl. 00088 { 00089 #ifdef OSG_USE_STDMATH 00090 return std::sqrt(rValue); 00091 #else 00092 return sqrt(rValue); 00093 #endif 00094 }
|
|
|
Definition at line 100 of file OSGBaseFunctions.inl. 00101 { 00102 #ifdef OSG_USE_STDMATH 00103 return std::sqrt(rValue); 00104 #else 00105 return sqrtl(rValue); 00106 #endif 00107 }
|
|
||||||||||
|
Definition at line 119 of file OSGBaseFunctions.inl. Referenced by osg::ExtrusionSurface::calcOptimizedContour(), osg::calcVertexNormals(), osg::SkyBackground::clear(), osg::ExtrusionSurface::computeMinYAbs(), osg::makeConicalFrustumGeo(), osg::makeLatLongSphereGeo(), osg::makeTorusGeo(), osg::QuaternionBase< ValueTypeT >::setValue(), and osg::QuaternionBase< ValueTypeT >::setValueAsAxisRad(). 00120 { 00121 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00122 00123 return osgcos(RealType(rValue)); 00124 }
|
|
|
Definition at line 130 of file OSGBaseFunctions.inl. 00131 { 00132 #ifdef OSG_USE_STDMATH 00133 return std::cos(rValue); 00134 #elif defined(OSG_HAS_FLOATMATH) 00135 return cosf(rValue); 00136 #else 00137 return (Real32) cos((Real32) rValue); 00138 #endif 00139 }
|
|
|
Definition at line 145 of file OSGBaseFunctions.inl. 00146 { 00147 #ifdef OSG_USE_STDMATH 00148 return std::cos(rValue); 00149 #else 00150 return cos(rValue); 00151 #endif 00152 }
|
|
|
Definition at line 158 of file OSGBaseFunctions.inl. 00159 { 00160 #ifdef OSG_USE_STDMATH 00161 return std::cos(rValue); 00162 #else 00163 return cosl(rValue); 00164 #endif 00165 }
|
|
||||||||||
|
Definition at line 177 of file OSGBaseFunctions.inl. Referenced by osg::ExtrusionSurface::calcOptimizedContour(), osg::SkyBackground::clear(), osg::ExtrusionSurface::computeMinYAbs(), osg::makeConicalFrustumGeo(), osg::makeLatLongSphereGeo(), osg::makeTorusGeo(), osg::QuaternionBase< ValueTypeT >::setValue(), osg::QuaternionBase< ValueTypeT >::setValueAsAxisRad(), and osg::QuaternionBase< ValueTypeT >::slerp(). 00178 { 00179 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00180 00181 return osgsin(RealType(rValue)); 00182 }
|
|
|
Definition at line 188 of file OSGBaseFunctions.inl. 00189 { 00190 #ifdef OSG_USE_STDMATH 00191 return std::sin(rValue); 00192 #elif defined(OSG_HAS_FLOATMATH) 00193 return sinf(rValue); 00194 #else 00195 return (Real32) sin((Real32) rValue); 00196 #endif 00197 }
|
|
|
Definition at line 203 of file OSGBaseFunctions.inl. 00204 { 00205 #ifdef OSG_USE_STDMATH 00206 return std::sin(rValue); 00207 #else 00208 return sin(rValue); 00209 #endif 00210 }
|
|
|
Definition at line 216 of file OSGBaseFunctions.inl. 00217 { 00218 #ifdef OSG_USE_STDMATH 00219 return std::sin(rValue); 00220 #else 00221 return sinl(rValue); 00222 #endif 00223 }
|
|
||||||||||
|
Definition at line 235 of file OSGBaseFunctions.inl. Referenced by osg::MatrixPerspective(), osg::OffCenterPerspectiveCamera::MatrixPerspectivePrincipalPnt(), osg::MatrixStereoPerspective(), and osg::SimpleSceneManager::showAll(). 00236 { 00237 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00238 00239 return osgtan(RealType(rValue)); 00240 }
|
|
|
Definition at line 246 of file OSGBaseFunctions.inl. 00247 { 00248 #ifdef OSG_USE_STDMATH 00249 return std::tan(rValue); 00250 #elif defined(OSG_HAS_FLOATMATH) 00251 return tanf(rValue); 00252 #else 00253 return (Real32) tan((Real32) rValue); 00254 #endif 00255 }
|
|
|
Definition at line 261 of file OSGBaseFunctions.inl. 00262 { 00263 #ifdef OSG_USE_STDMATH 00264 return std::tan(rValue); 00265 #else 00266 return tan(rValue); 00267 #endif 00268 }
|
|
|
Definition at line 274 of file OSGBaseFunctions.inl. 00275 { 00276 #ifdef OSG_USE_STDMATH 00277 return std::tan(rValue); 00278 #else 00279 return tanl(rValue); 00280 #endif 00281 }
|
|
||||||||||
|
Definition at line 293 of file OSGBaseFunctions.inl. Referenced by addPoint(), osg::VectorInterface< ValueTypeT, StorageInterfaceT >::enclosedAngle(), osg::TextVectorGlyph::getNormals(), osg::QuaternionBase< ValueTypeT >::getValueAsAxisDeg(), osg::makeSphereGeo(), and osg::QuaternionBase< ValueTypeT >::slerp(). 00294 { 00295 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00296 00297 return osgacos(RealType(rValue)); 00298 }
|
|
|
Definition at line 304 of file OSGBaseFunctions.inl. 00305 { 00306 #ifdef OSG_USE_STDMATH 00307 return std::acos(rValue); 00308 #elif defined(OSG_HAS_FLOATMATH) 00309 return acosf(rValue); 00310 #else 00311 return (Real32) acos((Real32) rValue); 00312 #endif 00313 }
|
|
|
Definition at line 319 of file OSGBaseFunctions.inl. 00320 { 00321 #ifdef OSG_USE_STDMATH 00322 return std::acos(rValue); 00323 #else 00324 return acos(rValue); 00325 #endif 00326 }
|
|
|
Definition at line 332 of file OSGBaseFunctions.inl. 00333 { 00334 #ifdef OSG_USE_STDMATH 00335 return std::acos(rValue); 00336 #else 00337 return acosl(rValue); 00338 #endif 00339 }
|
|
||||||||||
|
Definition at line 351 of file OSGBaseFunctions.inl. Referenced by osg::TrackballNavigator::rotate(), and osg::Trackball::updateRotation(). 00352 { 00353 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00354 00355 return osgasin(RealType(rValue)); 00356 }
|
|
|
Definition at line 362 of file OSGBaseFunctions.inl. 00363 { 00364 #ifdef OSG_USE_STDMATH 00365 return std::asin(rValue); 00366 #elif defined(OSG_HAS_FLOATMATH) 00367 return asinf(rValue); 00368 #else 00369 return (Real32) asin((Real32) rValue); 00370 #endif 00371 }
|
|
|
Definition at line 378 of file OSGBaseFunctions.inl. 00379 { 00380 #ifdef OSG_USE_STDMATH 00381 return std::asin(rValue); 00382 #else 00383 return asin(rValue); 00384 #endif 00385 }
|
|
|
Definition at line 391 of file OSGBaseFunctions.inl. 00392 { 00393 #ifdef OSG_USE_STDMATH 00394 return std::asin(rValue); 00395 #else 00396 return asinl(rValue); 00397 #endif 00398 }
|
|
||||||||||
|
Definition at line 410 of file OSGBaseFunctions.inl. 00411 { 00412 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00413 00414 return osgatan(RealType(rValue)); 00415 }
|
|
|
Definition at line 421 of file OSGBaseFunctions.inl. 00422 { 00423 #ifdef OSG_USE_STDMATH 00424 return std::atan(rValue); 00425 #elif defined(OSG_HAS_FLOATMATH) 00426 return atanf(rValue); 00427 #else 00428 return (Real32) atan((Real32) rValue); 00429 #endif 00430 }
|
|
|
Definition at line 436 of file OSGBaseFunctions.inl. 00437 { 00438 #ifdef OSG_USE_STDMATH 00439 return std::atan(rValue); 00440 #else 00441 return atan(rValue); 00442 #endif 00443 }
|
|
|
Definition at line 449 of file OSGBaseFunctions.inl. 00450 { 00451 #ifdef OSG_USE_STDMATH 00452 return std::atan(rValue); 00453 #else 00454 return atanl(rValue); 00455 #endif 00456 }
|
|
||||||||||||||||
|
Definition at line 468 of file OSGBaseFunctions.inl. Referenced by addPoint(), and osg::makeSphereGeo(). 00470 { 00471 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00472 00473 return osgatan2(RealType(rValue1), RealType(rValue2)); 00474 }
|
|
||||||||||||
|
Definition at line 480 of file OSGBaseFunctions.inl. 00481 { 00482 #ifdef OSG_USE_STDMATH 00483 return std::atan2(rValue1, rValue2); 00484 #elif defined(OSG_HAS_FLOATMATH) 00485 #ifndef _OSG_HAS_ATANF2__ 00486 return atan2f(rValue1, rValue2); 00487 #else 00488 return (Real32) atan2((Real32) rValue1, (Real32) rValue2); 00489 #endif 00490 #else 00491 return (Real32) atan2((Real32) rValue1, (Real32) rValue2); 00492 #endif 00493 }
|
|
||||||||||||
|
Definition at line 499 of file OSGBaseFunctions.inl. 00500 { 00501 #ifdef OSG_USE_STDMATH 00502 return std::atan2(rValue1, rValue2); 00503 #else 00504 return atan2(rValue1, rValue2); 00505 #endif 00506 }
|
|
||||||||||||
|
Definition at line 512 of file OSGBaseFunctions.inl. 00513 { 00514 #ifdef OSG_USE_STDMATH 00515 return std::atan2(rValue1, rValue2); 00516 #else 00517 return atan2l(rValue1, rValue2); 00518 #endif 00519 }
|
|
||||||||||
|
Definition at line 530 of file OSGBaseFunctions.inl.
|
|
|
Definition at line 539 of file OSGBaseFunctions.inl. 00540 { 00541 #ifdef OSG_USE_STDMATH 00542 return std::abs(rValue); 00543 #elif defined(OSG_HAS_FLOATMATH) && !defined(OSG_NO_FABSF) 00544 return fabsf(rValue); 00545 #else 00546 return (Real32) fabs((Real32) rValue); 00547 #endif 00548 }
|
|
|
Definition at line 554 of file OSGBaseFunctions.inl. 00555 { 00556 #ifdef OSG_USE_STDMATH 00557 return std::abs(rValue); 00558 #else 00559 return fabs(rValue); 00560 #endif 00561 }
|
|
|
Definition at line 567 of file OSGBaseFunctions.inl. 00568 { 00569 #ifdef OSG_USE_STDMATH 00570 return std::abs(rValue); 00571 #else 00572 return fabsl(rValue); 00573 #endif 00574 }
|
|
||||||||||||||||
|
Definition at line 586 of file OSGBaseFunctions.inl. Referenced by osg::makeSphereGeo(), osg::Navigator::moveTo(), osg::Brick::render3DSlices(), osg::TransformationMatrix< ValueTypeT >::sqrt(), osg::TransformationMatrix< ValueTypeT >::sqrtOf(), and osg::FresnelMaterial::updateFresnel(). 00588 { 00589 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00590 00591 return osgpow(RealType(rValue), RealType(rExp)); 00592 }
|
|
||||||||||||
|
Definition at line 598 of file OSGBaseFunctions.inl. 00599 { 00600 #ifdef OSG_USE_STDMATH 00601 return std::pow(rValue, rExp); 00602 #elif defined(OSG_HAS_FLOATMATH) 00603 return powf(rValue, rExp); 00604 #else 00605 return (Real32) pow((Real32) rValue, (Real32) rExp); 00606 #endif 00607 }
|
|
||||||||||||
|
Definition at line 613 of file OSGBaseFunctions.inl. 00614 { 00615 #ifdef OSG_USE_STDMATH 00616 return std::pow(rValue, rExp); 00617 #else 00618 return pow(rValue, rExp); 00619 #endif 00620 }
|
|
||||||||||||
|
Definition at line 626 of file OSGBaseFunctions.inl. 00627 { 00628 #ifdef OSG_USE_STDMATH 00629 return std::pow(rValue, rExp); 00630 #else 00631 return powl(rValue, rExp); 00632 #endif 00633 }
|
|
||||||||||
|
Definition at line 645 of file OSGBaseFunctions.inl. Referenced by osg::TransformationMatrix< ValueTypeT >::exp(), and osg::TransformationMatrix< ValueTypeT >::expOf(). 00646 { 00647 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00648 00649 return osglog(RealType(rValue)); 00650 }
|
|
|
Definition at line 656 of file OSGBaseFunctions.inl. 00657 { 00658 #ifdef OSG_USE_STDMATH 00659 return std::log(rValue); 00660 #elif defined(OSG_HAS_FLOATMATH) 00661 return logf(rValue); 00662 #else 00663 return (Real32) log((Real32) rValue); 00664 #endif 00665 }
|
|
|
Definition at line 671 of file OSGBaseFunctions.inl. 00672 { 00673 #ifdef OSG_USE_STDMATH 00674 return std::log(rValue); 00675 #else 00676 return log(rValue); 00677 #endif 00678 }
|
|
|
Definition at line 684 of file OSGBaseFunctions.inl. 00685 { 00686 #ifdef OSG_USE_STDMATH 00687 return std::log(rValue); 00688 #else 00689 return logl(rValue); 00690 #endif 00691 }
|
|
||||||||||
|
Definition at line 703 of file OSGBaseFunctions.inl. 00704 { 00705 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00706 00707 return osgexp(RealType(rValue)); 00708 }
|
|
|
Definition at line 714 of file OSGBaseFunctions.inl. 00715 { 00716 #ifdef OSG_USE_STDMATH 00717 return std::exp(rValue); 00718 #elif defined(OSG_HAS_FLOATMATH) 00719 return expf(rValue); 00720 #else 00721 return (Real32) exp((Real32) rValue); 00722 #endif 00723 }
|
|
|
Definition at line 729 of file OSGBaseFunctions.inl. 00730 { 00731 #ifdef OSG_USE_STDMATH 00732 return std::exp(rValue); 00733 #else 00734 return exp(rValue); 00735 #endif 00736 }
|
|
|
Definition at line 742 of file OSGBaseFunctions.inl. 00743 { 00744 #ifdef OSG_USE_STDMATH 00745 return std::exp(rValue); 00746 #else 00747 return expl(rValue); 00748 #endif 00749 }
|
|
||||||||||
|
Definition at line 761 of file OSGBaseFunctions.inl. Referenced by osg::DVRIsoShader::deactivate_ColorMatrixShading(). 00762 { 00763 typedef typename TypeTraits<FloatTypeT>::RealReturnType RealType; 00764 00765 return osgfloor(RealType(rValue)); 00766 }
|
|
|
|