]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/qvm/doc/accessing_quaternion_elements.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / qvm / doc / accessing_quaternion_elements.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>accessing quaternion elements</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>Accessing Quaternion Elements</h3>
20</div>
21<div class="RenoIncludeDIV"><div class="RenoIncludeDIV"><p><span class="RenoEscape">&#35;<!--<wiki>`&#35;</wiki>--></span>include &lt;<span class="RenoLink"><a href="boost_qvm_quat_access_hpp.html">boost/qvm/quat_access.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"> <span class="RenoIncludeSPAN">//Only <span class="RenoLink"><a href="SFINAE_enable_if.html">enabled if</a></span>:
27 // <span class="RenoLink"><a href="is_quat.html">is_quat</a></span>&lt;Q&gt;::value
28
29 template &lt;class Q&gt; -unspecified-return-type- <span class="RenoLink">S</span>( Q &amp; q );
30 template &lt;class Q&gt; -unspecified-return-type- <span class="RenoLink">V</span>( Q &amp; q );
31 template &lt;class Q&gt; -unspecified-return-type- <span class="RenoLink">X</span>( Q &amp; q );
32 template &lt;class Q&gt; -unspecified-return-type- <span class="RenoLink">Y</span>( Q &amp; q );
33 template &lt;class Q&gt; -unspecified-return-type- <span class="RenoLink">Z</span>( Q &amp; q );</span></span>
34 }
35}</pre>
36</div></div><p>An expression of the form <i>S(q)</i> can be used to access the scalar component of the quaternion <i>q</i>. For example,</p>
37<pre>S(q) <span class="RenoLink"><a href="operator_mul_eq_quat_scalar_.html">*=</a></span> 42;</pre>
38<p>multiplies the scalar component of <i>q</i> by the scalar 42.</p>
39<p>An expression of the form <i>V(q)</i> can be used to access the vector component of the quaternion <i>q</i>. For example,</p>
40<pre>V(q) <span class="RenoLink"><a href="operator_mul_eq_quat_scalar_.html">*=</a></span> 42</pre>
41<p>multiplies the vector component of <i>q</i> by the scalar 42.</p>
42<p>The X, Y and Z elements of the vector component can also be accessed directly using <i>X(q)</i>, <i>Y(q)</i> and <i>Z(q)</i>.</p>
43</div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
44See also: <span class="RenoPageList"><a href="index.html">Boost QVM</a>&nbsp;| <a href="boost_qvm_quat_access_hpp.html">boost/qvm/quat_access.hpp</a>&nbsp;| <a href="Synopsis.html">Synopsis</a></span>
45</div>
46<!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
47<!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
48<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
49<div id="footer">
50<p>
51<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>
52<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>
53<small>Copyright (c) 2008-2016 by Emil Dotchevski and Reverge Studios, Inc.<br/>
54Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</small>
55</p>
56</div>
57</div>
58</div>
59</div>
60</body>
61</html>