]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/qvm/doc/boost_qvm_math_hpp.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / qvm / doc / boost_qvm_math_hpp.html
CommitLineData
7c673cae
FG
1<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
2'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
3<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
4<head>
5 <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
6 <title>boost/qvm/math.hpp</title>
7 <link href='reno.css' type='text/css' rel='stylesheet'/>
8</head>
9<body>
10<div class="body-0">
11<div class="body-1">
12<div class="body-2">
13<div>
14<h1>QVM: Quaternions, Vectors, Matrices</h1>
15</div>
16<!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
17<!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
18<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
19<div class="RenoIncludeDIV"><div class="RenoAutoDIV"><h3>boost/qvm/math.hpp</h3>
20</div>
21<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>&lt;math.h&gt;</i>, and defines <i>float</i> and <i>double</i> specializations which simply call the appropriate C function.</p>
22<h3>Synopsis:</h3>
23<div class="RenoIncludeDIV"><p><span class="RenoEscape">&#35;<!--<wiki>`&#35;</wiki>--></span>include &lt;<span class="RenoLink">boost/qvm/math.hpp</span>&gt;</p>
24<pre>#include &lt;math.h&gt;
25#include &lt;<span class="RenoLink"><a href="boost_qvm_inline_hpp.html">boost/qvm/inline.hpp</a></span>&gt;
26
27namespace boost
28{
29 namespace <span class="RenoLink"><a href="qvm.html">qvm</a></span>
30 {
31<span class="RenoIncludeSPAN"> template &lt;class T&gt; T acos( T );
32 template &lt;class T&gt; T asin( T );
33 template &lt;class T&gt; T atan( T );
34 template &lt;class T&gt; T atan2( T, T );
35 template &lt;class T&gt; T cos( T );
36 template &lt;class T&gt; T sin( T );
37 template &lt;class T&gt; T tan( T );
38 template &lt;class T&gt; T cosh( T );
39 template &lt;class T&gt; T sinh( T );
40 template &lt;class T&gt; T tanh( T );
41 template &lt;class T&gt; T exp( T );
42 template &lt;class T&gt; T log( T );
43 template &lt;class T&gt; T log10( T );
44 template &lt;class T&gt; T mod( T , T );
45 template &lt;class T&gt; T pow( T, T );
46 template &lt;class T&gt; T sqrt( T );
47 template &lt;class T&gt; T ceil( T );
48 template &lt;class T&gt; T abs( T );
49 template &lt;class T&gt; T floor( T );
50 template &lt;class T&gt; T mod( T, T );
51 template &lt;class T&gt; T ldexp( T, int );
52 template &lt;class T&gt; T sign( T );
53
54 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float acos&lt;float&gt;( float x ) { return ::acosf(x); }
55 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float asin&lt;float&gt;( float x ) { return ::asinf(x); }
56 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float atan&lt;float&gt;( float x ) { return ::atanf(x); }
57 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float atan2&lt;float&gt;( float x, float y ) { return ::atan2f(x,y); }
58 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float cos&lt;float&gt;( float x ) { return ::cosf(x); }
59 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float sin&lt;float&gt;( float x ) { return ::sinf(x); }
60 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float tan&lt;float&gt;( float x ) { return ::tanf(x); }
61 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float cosh&lt;float&gt;( float x ) { return ::coshf(x); }
62 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float sinh&lt;float&gt;( float x ) { return ::sinhf(x); }
63 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float tanh&lt;float&gt;( float x ) { return ::tanhf(x); }
64 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float exp&lt;float&gt;( float x ) { return ::expf(x); }
65 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float log&lt;float&gt;( float x ) { return ::logf(x); }
66 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float log10&lt;float&gt;( float x ) { return ::log10f(x); }
67 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float mod&lt;float&gt;( float x, float y ) { return ::fmodf(x,y); }
68 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float pow&lt;float&gt;( float x, float y ) { return ::powf(x,y); }
69 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float sqrt&lt;float&gt;( float x ) { return ::sqrtf(x); }
70 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float ceil&lt;float&gt;( float x ) { return ::ceilf(x); }
71 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float abs&lt;float&gt;( float x ) { return ::fabsf(x); }
72 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float floor&lt;float&gt;( float x ) { return ::floorf(x); }
73 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float ldexp&lt;float&gt;( float x, int y ) { return ::ldexpf(x,y); }
74 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> float sign&lt;float&gt;( float x ) { return x&lt;0 ? -1.f : +1.f; }
75
76 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double acos&lt;double&gt;( double x ) { return ::acos(x); }
77 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double asin&lt;double&gt;( double x ) { return ::asin(x); }
78 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double atan&lt;double&gt;( double x ) { return ::atan(x); }
79 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double atan2&lt;double&gt;( double x, double y ) { return ::atan2(x,y); }
80 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double cos&lt;double&gt;( double x ) { return ::cos(x); }
81 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double sin&lt;double&gt;( double x ) { return ::sin(x); }
82 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double tan&lt;double&gt;( double x ) { return ::tan(x); }
83 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double cosh&lt;double&gt;( double x ) { return ::cosh(x); }
84 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double sinh&lt;double&gt;( double x ) { return ::sinh(x); }
85 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double tanh&lt;double&gt;( double x ) { return ::tanh(x); }
86 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double exp&lt;double&gt;( double x ) { return ::exp(x); }
87 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double log&lt;double&gt;( double x ) { return ::log(x); }
88 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double log10&lt;double&gt;( double x ) { return ::log10(x); }
89 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double mod&lt;double&gt;( double x, double y ) { return ::fmod(x,y); }
90 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double pow&lt;double&gt;( double x, double y ) { return ::pow(x,y); }
91 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double sqrt&lt;double&gt;( double x ) { return ::sqrt(x); }
92 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double ceil&lt;double&gt;( double x ) { return ::ceil(x); }
93 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double abs&lt;double&gt;( double x ) { return ::fabs(x); }
94 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double floor&lt;double&gt;( double x ) { return ::floor(x); }
95 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double ldexp&lt;double&gt;( double x, int y ) { return ::ldexp(x,y); }
96 template &lt;&gt; <span class="RenoLink"><a href="BOOST_QVM_INLINE_TRIVIAL.html">BOOST_QVM_INLINE_TRIVIAL</a></span> double sign&lt;double&gt;( double x ) { return x&lt;0 ? -1.0 : +1.0; }</span>
97 }
98}</pre>
99</div></div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
100See also: <span class="RenoPageList"><a href="known_quirks_and_issues.html">Known Quirks and Issues</a></span>
101</div>
102<!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
103<!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
104<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
105<div id="footer">
106<p>
107<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>
108<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>
109<small>Copyright (c) 2008-2016 by Emil Dotchevski and Reverge Studios, Inc.<br/>
110Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</small>
111</p>
112</div>
113</div>
114</div>
115</div>
116</body>
117</html>