118 lines
11 KiB
HTML
118 lines
11 KiB
HTML
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
|
|
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
|
|
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
|
|
<head>
|
|
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
|
|
<title>boost/qvm/math.hpp</title>
|
|
<link href='reno.css' type='text/css' rel='stylesheet'/>
|
|
</head>
|
|
<body>
|
|
<div class="body-0">
|
|
<div class="body-1">
|
|
<div class="body-2">
|
|
<div>
|
|
<h1>QVM: Quaternions, Vectors, Matrices</h1>
|
|
</div>
|
|
<!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
|
|
<!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
|
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
|
<div class="RenoIncludeDIV"><div class="RenoAutoDIV"><h3>boost/qvm/math.hpp</h3>
|
|
</div>
|
|
<p>This header introduces in the <i>boost::qvm</i> namespace function template declarations corresponding to the functions defined in the standard C header file <i><math.h></i>, and defines <i>float</i> and <i>double</i> specializations which simply call the appropriate C function.</p>
|
|
<h3>Synopsis:</h3>
|
|
<div class="RenoIncludeDIV"><p><span class="RenoEscape">#<!--<wiki>`#</wiki>--></span>include <<span class="RenoLink">boost/qvm/math.hpp</span>></p>
|
|
<pre>#include <math.h>
|
|
#include <<span class="RenoLink"><a href="boost_qvm_inline_hpp.html">boost/qvm/inline.hpp</a></span>>
|
|
|
|
namespace boost
|
|
{
|
|
namespace <span class="RenoLink"><a href="qvm.html">qvm</a></span>
|
|
{
|
|
<span class="RenoIncludeSPAN"> template <class T> T acos( T );
|
|
template <class T> T asin( T );
|
|
template <class T> T atan( T );
|
|
template <class T> T atan2( T, T );
|
|
template <class T> T cos( T );
|
|
template <class T> T sin( T );
|
|
template <class T> T tan( T );
|
|
template <class T> T cosh( T );
|
|
template <class T> T sinh( T );
|
|
template <class T> T tanh( T );
|
|
template <class T> T exp( T );
|
|
template <class T> T log( T );
|
|
template <class T> T log10( T );
|
|
template <class T> T mod( T , T );
|
|
template <class T> T pow( T, T );
|
|
template <class T> T sqrt( T );
|
|
template <class T> T ceil( T );
|
|
template <class T> T abs( T );
|
|
template <class T> T floor( T );
|
|
template <class T> T mod( T, T );
|
|
template <class T> T ldexp( T, int );
|
|
template <class T> T sign( T );
|
|
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float acos<float>( float x ) { return ::acosf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float asin<float>( float x ) { return ::asinf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float atan<float>( float x ) { return ::atanf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float atan2<float>( float x, float y ) { return ::atan2f(x,y); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float cos<float>( float x ) { return ::cosf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float sin<float>( float x ) { return ::sinf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float tan<float>( float x ) { return ::tanf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float cosh<float>( float x ) { return ::coshf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float sinh<float>( float x ) { return ::sinhf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float tanh<float>( float x ) { return ::tanhf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float exp<float>( float x ) { return ::expf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float log<float>( float x ) { return ::logf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float log10<float>( float x ) { return ::log10f(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float mod<float>( float x, float y ) { return ::fmodf(x,y); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float pow<float>( float x, float y ) { return ::powf(x,y); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float sqrt<float>( float x ) { return ::sqrtf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float ceil<float>( float x ) { return ::ceilf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float abs<float>( float x ) { return ::fabsf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float floor<float>( float x ) { return ::floorf(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float ldexp<float>( float x, int y ) { return ::ldexpf(x,y); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float sign<float>( float x ) { return x<0 ? -1.f : +1.f; }
|
|
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double acos<double>( double x ) { return ::acos(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double asin<double>( double x ) { return ::asin(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double atan<double>( double x ) { return ::atan(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double atan2<double>( double x, double y ) { return ::atan2(x,y); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double cos<double>( double x ) { return ::cos(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double sin<double>( double x ) { return ::sin(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double tan<double>( double x ) { return ::tan(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double cosh<double>( double x ) { return ::cosh(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double sinh<double>( double x ) { return ::sinh(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double tanh<double>( double x ) { return ::tanh(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double exp<double>( double x ) { return ::exp(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double log<double>( double x ) { return ::log(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double log10<double>( double x ) { return ::log10(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double mod<double>( double x, double y ) { return ::fmod(x,y); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double pow<double>( double x, double y ) { return ::pow(x,y); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double sqrt<double>( double x ) { return ::sqrt(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double ceil<double>( double x ) { return ::ceil(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double abs<double>( double x ) { return ::fabs(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double floor<double>( double x ) { return ::floor(x); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double ldexp<double>( double x, int y ) { return ::ldexp(x,y); }
|
|
template <> <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double sign<double>( double x ) { return x<0 ? -1.0 : +1.0; }</span>
|
|
}
|
|
}</pre>
|
|
</div></div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
|
|
See also: <span class="RenoPageList"><a href="known_quirks_and_issues.html">Known Quirks and Issues</a></span>
|
|
</div>
|
|
<!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
|
|
<!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
|
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
|
<div id="footer">
|
|
<p>
|
|
<a class="logo" href="http://jigsaw.w3.org/css-validator/check/referer"><img class="logo_pic" src="valid-css.png" alt="Valid CSS" height="31" width="88"/></a>
|
|
<a class="logo" href="http://validator.w3.org/check?uri=referer"><img class="logo_pic" src="valid-xhtml.png" alt="Valid XHTML 1.0" height="31" width="88"/></a>
|
|
<small>Copyright (c) 2008-2016 by Emil Dotchevski and Reverge Studios, Inc.<br/>
|
|
Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</small>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|