Skip to content

Commit

Permalink
Updates the doc formatting on quaternions.
Browse files Browse the repository at this point in the history
  • Loading branch information
crertel committed Jan 29, 2015
1 parent 9f97b62 commit 7850e26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions docs/Graphmath.Quatern.html
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ <h2>Functions</h2>
<div class="docstring"><p><code class="inline">add(lhs, rhs)</code> add two quaternions.</p>
<p><code class="inline">lhs</code> is the first <code class="inline">quatern</code></p>
<p><code class="inline">rhs</code> is the second <code class="inline">quatern</code></p>
<p>It returns a <code class="inline">quatern</code> of the form</p>
<pre><code>{ lhs&lt;sub&gt;w&lt;/sub&gt; + rhs&lt;sub&gt;w&lt;/sub&gt;, lhs&lt;sub&gt;x&lt;/sub&gt; + rhs&lt;sub&gt;x&lt;/sub&gt;, lhs&lt;sub&gt;y&lt;/sub&gt; + rhs&lt;sub&gt;y&lt;/sub&gt;, lhs&lt;sub&gt;z&lt;/sub&gt; + rhs&lt;sub&gt;z&lt;/sub&gt; }.</code></pre>
<p>It returns a <code class="inline">quatern</code> of the form { lhs<sub>w</sub> + rhs<sub>w</sub>, lhs<sub>x</sub> + rhs<sub>x</sub>, lhs<sub>y</sub> + rhs<sub>y</sub>, lhs<sub>z</sub> + rhs<sub>z</sub> }.</p>
</div>

</div>
Expand Down Expand Up @@ -652,8 +651,7 @@ <h2>Functions</h2>
<div class="docstring"><p><code class="inline">subtract(lhs, rhs)</code> subtract two quaternions.</p>
<p> <code class="inline">lhs</code> is the first <code class="inline">quatern</code></p>
<p> <code class="inline">rhs</code> is the second <code class="inline">quatern</code></p>
<p> It returns a <code class="inline">quatern</code> of the form</p>
<pre><code>{ lhs&lt;sub&gt;w&lt;/sub&gt; - rhs&lt;sub&gt;w&lt;/sub&gt;, lhs&lt;sub&gt;x&lt;/sub&gt; - rhs&lt;sub&gt;x&lt;/sub&gt;, lhs&lt;sub&gt;y&lt;/sub&gt; - rhs&lt;sub&gt;y&lt;/sub&gt;, lhs&lt;sub&gt;z&lt;/sub&gt; - rhs&lt;sub&gt;z&lt;/sub&gt; }.</code></pre>
<p> It returns a <code class="inline">quatern</code> of the form { lhs<sub>w</sub> - rhs<sub>w</sub>, lhs<sub>x</sub> - rhs<sub>x</sub>, lhs<sub>y</sub> - rhs<sub>y</sub>, lhs<sub>z</sub> - rhs<sub>z</sub> }.</p>
</div>

</div>
Expand Down
6 changes: 2 additions & 4 deletions lib/Quatern.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ defmodule Graphmath.Quatern do
`rhs` is the second `quatern`
It returns a `quatern` of the form
{ lhs<sub>w</sub> + rhs<sub>w</sub>, lhs<sub>x</sub> + rhs<sub>x</sub>, lhs<sub>y</sub> + rhs<sub>y</sub>, lhs<sub>z</sub> + rhs<sub>z</sub> }.
It returns a `quatern` of the form { lhs<sub>w</sub> + rhs<sub>w</sub>, lhs<sub>x</sub> + rhs<sub>x</sub>, lhs<sub>y</sub> + rhs<sub>y</sub>, lhs<sub>z</sub> + rhs<sub>z</sub> }.
"""
@spec add(quatern, quatern) :: quatern
def add(lhs, rhs) do
Expand All @@ -100,8 +99,7 @@ defmodule Graphmath.Quatern do
`rhs` is the second `quatern`
It returns a `quatern` of the form
{ lhs<sub>w</sub> - rhs<sub>w</sub>, lhs<sub>x</sub> - rhs<sub>x</sub>, lhs<sub>y</sub> - rhs<sub>y</sub>, lhs<sub>z</sub> - rhs<sub>z</sub> }.
It returns a `quatern` of the form { lhs<sub>w</sub> - rhs<sub>w</sub>, lhs<sub>x</sub> - rhs<sub>x</sub>, lhs<sub>y</sub> - rhs<sub>y</sub>, lhs<sub>z</sub> - rhs<sub>z</sub> }.
"""
@spec subtract(quatern, quatern) :: quatern
def subtract(lhs, rhs) do
Expand Down

0 comments on commit 7850e26

Please sign in to comment.