]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/qvm/doc/scalar_traits.html
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / qvm / doc / scalar_traits.html
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>scalar_traits</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>scalar_traits</h3>
20 </div>
21 <div class="RenoIncludeDIV"><p><span class="RenoEscape">&#35;<!--<wiki>`&#35;</wiki>--></span>include &lt;<span class="RenoLink"><a href="boost_qvm_scalar_traits_hpp.html">boost/qvm/scalar_traits.hpp</a></span>&gt;</p>
22 <pre>namespace boost
23 {
24 namespace <span class="RenoLink"><a href="qvm.html">qvm</a></span>
25 {
26 <span class="RenoIncludeSPAN"> template &lt;class Scalar&gt;
27 struct <span class="RenoLink">scalar_traits</span>
28 {
29 <span class="RenoLink"><a href="BOOST_QVM_INLINE_CRITICAL.html">BOOST_QVM_INLINE_CRITICAL</a></span>
30 static Scalar value( int v )
31 {
32 return Scalar(v);
33 }
34 };</span>
35 }
36 }</pre>
37 </div><p>This template can be specialized for user-defined scalar types to define the appropriate conversion from int; this is primarily used whenever Boost QVM needs to deduce a zero or one value.</p>
38 </div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
39 See also: <span class="RenoPageList"><a href="boost_qvm_scalar_traits_hpp.html">boost/qvm/scalar_traits.hpp</a>&nbsp;| <a href="inverse_mat_.html">inverse(mat)</a>&nbsp;| <a href="is_scalar.html">is_scalar</a>&nbsp;| <a href="normalize_quat_.html">normalize(quat)</a>&nbsp;| <a href="normalize_vec_.html">normalize(vec)</a>&nbsp;| <a href="scalar_requirements.html">Scalar Requirements</a>&nbsp;| <a href="zero_mat.html">zero_mat</a>&nbsp;| <a href="zero_quat.html">zero_quat</a>&nbsp;| <a href="zero_vec.html">zero_vec</a></span>
40 </div>
41 <!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
42 <!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
43 <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
44 <div id="footer">
45 <p>
46 <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>
47 <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>
48 <small>Copyright (c) 2008-2016 by Emil Dotchevski and Reverge Studios, Inc.<br/>
49 Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</small>
50 </p>
51 </div>
52 </div>
53 </div>
54 </div>
55 </body>
56 </html>