Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > e11d2e4eb3aac8571de993a0387d8314 > files > 88

libmspub-doc-0.0.6-1.fc18.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>VectorTransformation2D.h Source File documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.8.3.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('VectorTransformation2D_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">VectorTransformation2D.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="VectorTransformation2D_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/* libmspub</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Version: MPL 1.1 / GPLv2+ / LGPLv2+</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * The contents of this file are subject to the Mozilla Public License Version</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * 1.1 (the &quot;License&quot;); you may not use this file except in compliance with</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the License or as specified alternatively below. You may obtain a copy of</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * the License at http://www.mozilla.org/MPL/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * Software distributed under the License is distributed on an &quot;AS IS&quot; basis,</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * for the specific language governing rights and limitations under the</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * License.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * Major Contributor(s):</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * Copyright (C) 2012 Brennan Vincent &lt;brennanv@email.arizona.edu&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * All Rights Reserved.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * For minor contributions see the git repository.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * Alternatively, the contents of this file may be used under the terms of</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * either the GNU General Public License Version 2 or later (the &quot;GPLv2+&quot;), or</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * the GNU Lesser General Public License Version 2 or later (the &quot;LGPLv2+&quot;),</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * instead of those above.</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#ifndef __VECTORTRANSFORMATION2D_H__</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __VECTORTRANSFORMATION2D_H__</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span>libmspub</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="structlibmspub_1_1Vector2D.html">   34</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structlibmspub_1_1Vector2D.html">Vector2D</a></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="structlibmspub_1_1Vector2D.html#a5cde23c99cc621f0b0496aeeffdf80da">   36</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="structlibmspub_1_1Vector2D.html#a5cde23c99cc621f0b0496aeeffdf80da">m_x</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="structlibmspub_1_1Vector2D.html#acf3993b8d2b969d0a7710cd7925317c7">   37</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="structlibmspub_1_1Vector2D.html#acf3993b8d2b969d0a7710cd7925317c7">m_y</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="structlibmspub_1_1Vector2D.html#aacd8179978277c8532934a69cc9d9ad1">   38</a></span>&#160;  <a class="code" href="structlibmspub_1_1Vector2D.html#aacd8179978277c8532934a69cc9d9ad1">Vector2D</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) : <a class="code" href="structlibmspub_1_1Vector2D.html#a5cde23c99cc621f0b0496aeeffdf80da">m_x</a>(x), <a class="code" href="structlibmspub_1_1Vector2D.html#acf3993b8d2b969d0a7710cd7925317c7">m_y</a>(y)</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  {</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;};</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;Vector2D <a class="code" href="namespacelibmspub.html#a49703936437484c602797d4390713c35">operator+</a>(<span class="keyword">const</span> Vector2D &amp;l, <span class="keyword">const</span> Vector2D &amp;r);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;Vector2D <a class="code" href="namespacelibmspub.html#aa392f035a81a0a39116ca56b6007af4e">operator-</a>(<span class="keyword">const</span> Vector2D &amp;l, <span class="keyword">const</span> Vector2D &amp;r);</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="classlibmspub_1_1VectorTransformation2D.html">   44</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a6abfdac526ce62795486335e326857f2">   46</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a11f4824b32ebf9a9ebc351c4c70edbdd">m_m11</a>, <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a21601b14663b293903f504dc0d4c9c34">m_m12</a>, <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#ada8d3f900dcfa548ab47ef13a9671043">m_m21</a>, <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a6abfdac526ce62795486335e326857f2">m_m22</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a2522d811e60267e004650ccae00d93ca">   47</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a511af53a39e0e43b4d62ee2e6cbce6ea">m_x</a>, <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a2522d811e60267e004650ccae00d93ca">m_y</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#abd83bd84127e76c2bbe5632db647eee9">VectorTransformation2D</a>();</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <a class="code" href="structlibmspub_1_1Vector2D.html">Vector2D</a> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a8233f9b3f60aa7c6b71a993f7a841c85">transform</a>(<a class="code" href="structlibmspub_1_1Vector2D.html">Vector2D</a> original) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <a class="code" href="structlibmspub_1_1Vector2D.html">Vector2D</a> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a95791052a800dc88641be61ebc281139">transformWithOrigin</a>(<a class="code" href="structlibmspub_1_1Vector2D.html">Vector2D</a> v, <a class="code" href="structlibmspub_1_1Vector2D.html">Vector2D</a> origin) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a9aad0f97a0f2ee6b63893431decdd11c">getRotation</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#ac2ec8c90d15f18eb5318b821c7c8c654">getHorizontalScaling</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a040890a5551d4937871ef9919fd4a6d7">getVerticalScaling</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a848341d765f4c12b77090f1719269abf">orientationReversing</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  <span class="keyword">friend</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a0e29a3253a16bedb38018bd072995071">operator*</a>(<span class="keyword">const</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> &amp;l, <span class="keyword">const</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> &amp;r);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="keyword">static</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a3cab3081bb7009ede810d38dc2826e30">fromFlips</a>(<span class="keywordtype">bool</span> flipH, <span class="keywordtype">bool</span> flipV);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="keyword">static</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a959b36c518a1a10d8693ae71b92aabe2">fromTranslate</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="keyword">static</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html#a6a641bc52b5bba2b95f784904523efb0">fromCounterRadians</a>(<span class="keywordtype">double</span> theta);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;};</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> <a class="code" href="namespacelibmspub.html#a5e2329fba247a9b76501f0243e69df36">operator*</a>(<span class="keyword">const</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> &amp;l, <span class="keyword">const</span> <a class="code" href="classlibmspub_1_1VectorTransformation2D.html">VectorTransformation2D</a> &amp;r);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;} <span class="comment">// namespace libmspub</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __VECTORTRANSFORMATION2D_H__ */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor"></span><span class="comment">/* vim:set shiftwidth=2 softtabstop=2 expandtab: */</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<hr size="1"><address style="align: right;"><small>
Generated for libmspub by <a href="http://www.doxygen.org/index.html">
doxygen</a> 1.8.3.1</small></address>
</body>
</html>