<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="__quaternion_8h">
<title>/Users/bernard/b20/bsoft/include/Quaternion.h File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/include/Quaternion.h</primary></indexterm>
<para>

<para>Class for quaternions. </para>
 
</para>
<programlisting>#include &lt;cmath&gt;
#include &quot;Vector3.h&quot;
</programlisting><simplesect>
    <title>Classes    </title>
        <itemizedlist>
            <listitem><para>class <link linkend="_class_vector3">Vector3&lt; Type &gt;</link></para>

<para>Vector class for 3-value vectors used in 3D space. The internal variables are an array of 3 numbers. </para>
</listitem>
            <listitem><para>class <link linkend="_class_quaternion">Quaternion</link></para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>ostream &amp; <link linkend="__quaternion_8h_1a1911393e20bc3cb95a0e844bd9d034de">operator&lt;&lt;</link> (ostream &amp;output, <link linkend="_class_quaternion">Quaternion</link> &amp;q)</para>
</listitem>
            <listitem><para>template&lt;typename Type &gt; </para><para><link linkend="_class_vector3">Vector3</link>&lt; Type &gt; <link linkend="__quaternion_8h_1ac3c80dc2e6d14df3ce6f0c3711ad992c">vector3_rotate</link> (<link linkend="_class_vector3">Vector3</link>&lt; Type &gt; &amp;vec, <link linkend="_class_vector3">Vector3</link>&lt; Type &gt; &amp;axis, double angle)</para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Class for quaternions. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 20051017 </para>

<para>Modified: 20150115 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="__quaternion_8h_1a1911393e20bc3cb95a0e844bd9d034de"/>    <section>
    <title>operator&lt;&lt;()</title>
<indexterm><primary>operator&lt;&lt;</primary><secondary>Quaternion.h</secondary></indexterm>
<indexterm><primary>Quaternion.h</primary><secondary>operator&lt;&lt;</secondary></indexterm>
<para><computeroutput>ostream&amp; operator&lt;&lt; (ostream &amp; output, <link linkend="_class_quaternion">Quaternion</link> &amp; q)</computeroutput></para><para>
Definition at line 15 of file Quaternion.cpp.</para>
    </section><anchor xml:id="__quaternion_8h_1ac3c80dc2e6d14df3ce6f0c3711ad992c"/>    <section>
    <title>vector3_rotate()</title>
<indexterm><primary>vector3_rotate</primary><secondary>Quaternion.h</secondary></indexterm>
<indexterm><primary>Quaternion.h</primary><secondary>vector3_rotate</secondary></indexterm>
<computeroutput>template&lt;typename Type &gt; </computeroutput><para><computeroutput><link linkend="_class_vector3">Vector3</link>&lt;Type&gt; vector3_rotate (<link linkend="_class_vector3">Vector3</link>&lt; Type &gt; &amp; vec, <link linkend="_class_vector3">Vector3</link>&lt; Type &gt; &amp; axis, double angle)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
Definition at line 183 of file Quaternion.h.</para>
</section>
</section>
</section>
