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>is_scalar
</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>is_scalar
</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>
26 <span class=
"RenoLink"><a href=
"qvm.html">qvm
</a></span>
28 <span class=
"RenoIncludeSPAN"> template
<class T
>
29 struct
<span class=
"RenoLink">is_scalar
</span>
31 bool const value=false;
33 template
<> struct
<span class=
"RenoLink">is_scalar
</span><char
> { static bool const value=true; };
34 template
<> struct
<span class=
"RenoLink">is_scalar
</span><signed char
> { static bool const value=true; };
35 template
<> struct
<span class=
"RenoLink">is_scalar
</span><unsigned char
> { static bool const value=true; };
36 template
<> struct
<span class=
"RenoLink">is_scalar
</span><signed short
> { static bool const value=true; };
37 template
<> struct
<span class=
"RenoLink">is_scalar
</span><unsigned short
> { static bool const value=true; };
38 template
<> struct
<span class=
"RenoLink">is_scalar
</span><signed int
> { static bool const value=true; };
39 template
<> struct
<span class=
"RenoLink">is_scalar
</span><unsigned int
> { static bool const value=true; };
40 template
<> struct
<span class=
"RenoLink">is_scalar
</span><signed long
> { static bool const value=true; };
41 template
<> struct
<span class=
"RenoLink">is_scalar
</span><unsigned long
> { static bool const value=true; };
42 template
<> struct
<span class=
"RenoLink">is_scalar
</span><float
> { static bool const value=true; };
43 template
<> struct
<span class=
"RenoLink">is_scalar
</span><double
> { static bool const value=true; };
</span>
46 </div><p>This type template defines a compile-time boolean constant value which can be used to determine whether a type
<i>T
</i> is a valid scalar type. It must be specialized together with the
<i><span class=
"RenoLink"><a href=
"scalar_traits.html">scalar_traits
</a></span></i> template in order to introduce a user scalar type to Boost QVM. Such types must satisfy the
<span class=
"RenoLink"><a href=
"scalar_requirements.html">scalar requirements
</a></span>.
</p>
47 </div><div class=
"RenoAutoDIV"><div class=
"RenoHR"><hr/></div>
48 See also:
<span class=
"RenoPageList"><a href=
"inverse_mat_.html">inverse(mat)
</a> |
<a href=
"operator_times_mat_scalar_.html">operator*(mat,scalar)
</a> |
<a href=
"operator_times_vec_scalar_.html">operator*(vec,scalar)
</a> |
<a href=
"operator_mul_eq_mat_scalar_.html">operator*=(mat,scalar)
</a> |
<a href=
"operator_mul_eq_vec_scalar_.html">operator*=(vec,scalar)
</a> |
<a href=
"operator_over_mat_scalar_.html">operator/(mat,scalar)
</a> |
<a href=
"operator_over_vec_scalar_.html">operator/(vec,scalar)
</a> |
<a href=
"operator_div_eq_mat_scalar_.html">operator/=(mat,scalar)
</a> |
<a href=
"operator_div_eq_vec_scalar_.html">operator/=(vec,scalar)
</a> |
<a href=
"slerp.html">slerp
</a></span>
50 <!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
51 <!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
52 <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
55 <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>
56 <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>
57 <small>Copyright (c)
2008-
2016 by Emil Dotchevski and Reverge Studios, Inc.
<br/>
58 Distributed under the
<a href=
"http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version
1.0</a>.
</small>