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'
>
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'
/>
14 <h1>QVM: Quaternions, Vectors, Matrices
</h1>
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>
21 <div class=
"RenoIncludeDIV"><p><span class=
"RenoEscape">#<!--<wiki>`#</wiki>--></span>include
<<span class=
"RenoLink"><a href=
"boost_qvm_scalar_traits_hpp.html">boost/qvm/scalar_traits.hpp
</a></span>></p>
24 namespace
<span class=
"RenoLink"><a href=
"qvm.html">qvm
</a></span>
26 <span class=
"RenoIncludeSPAN"> template
<class Scalar
>
27 struct
<span class=
"RenoLink">scalar_traits
</span>
29 <span class=
"RenoLink"><a href=
"BOOST_QVM_INLINE_CRITICAL.html">BOOST_QVM_INLINE_CRITICAL
</a></span>
30 static Scalar value( int v )
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> |
<a href=
"inverse_mat_.html">inverse(mat)
</a> |
<a href=
"is_scalar.html">is_scalar
</a> |
<a href=
"normalize_quat_.html">normalize(quat)
</a> |
<a href=
"normalize_vec_.html">normalize(vec)
</a> |
<a href=
"scalar_requirements.html">Scalar Requirements
</a> |
<a href=
"zero_mat.html">zero_mat
</a> |
<a href=
"zero_quat.html">zero_quat
</a> |
<a href=
"zero_vec.html">zero_vec
</a></span>
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) -->
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>