diff options
author | Matt Strapp <matt@mattstrapp.net> | 2021-09-20 18:15:14 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2021-09-20 18:15:14 -0500 |
commit | 342403a02f8063903d0f38327430721d4d0ae331 (patch) | |
tree | 29d020a27bc16939c568dd4b29166566d1c0e658 /dev/MinGfx/docs/html/point2_8h_source.html | |
parent | Fix parenthesis (diff) | |
download | csci4611-submission-p1.0.tar csci4611-submission-p1.0.tar.gz csci4611-submission-p1.0.tar.bz2 csci4611-submission-p1.0.tar.lz csci4611-submission-p1.0.tar.xz csci4611-submission-p1.0.tar.zst csci4611-submission-p1.0.zip |
do ass1submission-p1.0
Diffstat (limited to 'dev/MinGfx/docs/html/point2_8h_source.html')
-rw-r--r-- | dev/MinGfx/docs/html/point2_8h_source.html | 382 |
1 files changed, 191 insertions, 191 deletions
diff --git a/dev/MinGfx/docs/html/point2_8h_source.html b/dev/MinGfx/docs/html/point2_8h_source.html index c2b55b1..cbd83f3 100644 --- a/dev/MinGfx/docs/html/point2_8h_source.html +++ b/dev/MinGfx/docs/html/point2_8h_source.html @@ -1,191 +1,191 @@ -<!-- HTML header for doxygen 1.8.9.1--> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.9.1"/> -<title>MinGfx Toolkit: src/point2.h Source File</title> -<link href="tabs.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="jquery.js"></script> -<script type="text/javascript" src="dynsections.js"></script> -<link href="search/search.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="search/searchdata.js"></script> -<script type="text/javascript" src="search/search.js"></script> -<script type="text/x-mathjax-config"> - MathJax.Hub.Config({ - extensions: ["tex2jax.js"], - jax: ["input/TeX","output/HTML-CSS"], -}); -</script> -<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> -<link href="doxygen.css" rel="stylesheet" type="text/css" /> -<link href="customdoxygen.css" rel="stylesheet" type="text/css"/> -</head> -<body> -<div id="top"><!-- do not remove this div, it is closed by doxygen! --> -<div id="titlearea"> -<table cellspacing="0" cellpadding="0"> - <tbody> - <tr style="height: 56px;"> - <td style="padding-left: 0.5em;"> - <div id="projectname">MinGfx Toolkit -  <span id="projectnumber">1.0</span> - </div> - <div id="projectbrief">A minimal library for writing cross-platform (Windows, OSX, linux) graphics programs.</div> - </td> - </tr> - </tbody> -</table> -</div> -<!-- end header part --> -<!-- Generated by Doxygen 1.9.1 --> -<script type="text/javascript"> -/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ -var searchBox = new SearchBox("searchBox", "search",false,'Search','.html'); -/* @license-end */ -</script> -<script type="text/javascript" src="menudata.js"></script> -<script type="text/javascript" src="menu.js"></script> -<script type="text/javascript"> -/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ -$(function() { - initMenu('',true,false,'search.php','Search'); - $(document).ready(function() { init_search(); }); -}); -/* @license-end */</script> -<div id="main-nav"></div> -<!-- window showing the filter options --> -<div id="MSearchSelectWindow" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - onkeydown="return searchBox.OnSearchSelectKey(event)"> -</div> - -<!-- iframe showing the search results (closed by default) --> -<div id="MSearchResultsWindow"> -<iframe src="javascript:void(0)" frameborder="0" - name="MSearchResults" id="MSearchResults"> -</iframe> -</div> - -<div id="nav-path" class="navpath"> - <ul> -<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul> -</div> -</div><!-- top --> -<div class="header"> - <div class="headertitle"> -<div class="title">point2.h</div> </div> -</div><!--header--> -<div class="contents"> -<a href="point2_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> <span class="comment">/*</span></div> -<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> This file is part of the MinGfx Project.</span></div> -<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> </span></div> -<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2017,2018 Regents of the University of Minnesota.</span></div> -<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> All Rights Reserved.</span></div> -<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> </span></div> -<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Original Author(s) of this File:</span></div> -<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> Dan Keefe, 2018, University of Minnesota</span></div> -<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> </span></div> -<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> Author(s) of Significant Updates/Modifications to the File:</span></div> -<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ...</span></div> -<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> */</span></div> -<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div> -<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#ifndef SRC_POINT2_H_</span></div> -<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#define SRC_POINT2_H_</span></div> -<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div> -<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <iostream></span></div> -<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div> -<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">namespace </span><a class="code" href="namespacemingfx.html">mingfx</a> {</div> -<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div> -<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="point2_8h.html#a432350d21fbc10d5e65eeeb6859511ea"> 22</a></span> <span class="preprocessor">#define MINGFX_MATH_EPSILON 1e-8</span></div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div> -<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div> -<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html"> 28</a></span> <span class="keyword">class </span><a class="code" href="classmingfx_1_1_point2.html">Point2</a> {</div> -<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1"> 31</a></span>  <a class="code" href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">Point2</a>();</div> -<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div> -<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483"> 35</a></span>  <a class="code" href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483">Point2</a>(<span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">x</a>, <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">y</a>);</div> -<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div> -<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f"> 38</a></span>  <a class="code" href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f">Point2</a>(<span class="keywordtype">float</span> *p);</div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div> -<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0"> 41</a></span>  <a class="code" href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0">Point2</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& p);</div> -<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div> -<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a"> 44</a></span>  <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">~Point2</a>();</div> -<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div> -<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa"> 47</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa">operator==</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& p) <span class="keyword">const</span>;</div> -<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div> -<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84"> 50</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& p) <span class="keyword">const</span>;</div> -<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div> -<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902"> 53</a></span>  <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& <a class="code" href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& p);</div> -<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div> -<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542"> 56</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i) <span class="keyword">const</span>;</div> -<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div> -<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3"> 65</a></span>  <span class="keywordtype">float</span>& <a class="code" href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i);</div> -<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div> -<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa"> 69</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">x</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> p[0]; }</div> -<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div> -<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8"> 73</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">y</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> p[1]; }</div> -<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div> -<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8"> 76</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8">w</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 1.0; }</div> -<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div> -<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div> -<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc"> 80</a></span>  <span class="keyword">const</span> <span class="keywordtype">float</span> * <a class="code" href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc">value_ptr</a>() <span class="keyword">const</span>;</div> -<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div> -<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6"> 85</a></span>  <a class="code" href="classmingfx_1_1_point2.html">Point2</a> <a class="code" href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6">Lerp</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &b, <span class="keywordtype">float</span> alpha) <span class="keyword">const</span>;</div> -<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div> -<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div> -<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630"> 89</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& <a class="code" href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630">Origin</a>();</div> -<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div> -<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f"> 92</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& <a class="code" href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f">Zero</a>();</div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div> -<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8"> 95</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& <a class="code" href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8">One</a>();</div> -<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  </div> -<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e"> 99</a></span>  <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> <a class="code" href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e">Lerp</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &a, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &b, <span class="keywordtype">float</span> alpha);</div> -<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div> -<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keyword">private</span>:</div> -<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">float</span> p[2];</div> -<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> };</div> -<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div> -<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div> -<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a58ddc500b8c3e12f8af4515f258540cb"> 106</a></span> std::ostream & <a class="code" href="namespacemingfx.html#a6bc967741341f4f318a505d884192906">operator<< </a>( std::ostream &os, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &p);</div> -<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a256924759a6718882a2b40e17d3e523d"> 107</a></span> std::istream & <a class="code" href="namespacemingfx.html#a6eb31e6e81c6e29144799be4c9db404d">operator>> </a>( std::istream &is, <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &p);</div> -<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div> -<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div> -<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> } <span class="comment">// namespace</span></div> -<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div> -<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#endif</span></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html"><div class="ttname"><a href="classmingfx_1_1_point2.html">mingfx::Point2</a></div><div class="ttdoc">A 2D Point with floating point coordinates, used for storing 2D texture coordinates,...</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00028">point2.h:28</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a027b2412f1c36242ccb06cf37c7e29bc"><div class="ttname"><a href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc">mingfx::Point2::value_ptr</a></div><div class="ttdeci">const float * value_ptr() const</div><div class="ttdoc">Returns a const pointer to the raw data array.</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a24d7a5121fceba01b46f3ba0f6525630"><div class="ttname"><a href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630">mingfx::Point2::Origin</a></div><div class="ttdeci">static const Point2 & Origin()</div><div class="ttdoc">(0,0) - a shortcut for a special point that is frequently needed</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a2e5869d810b52be4ba43c8a4f4e117a1"><div class="ttname"><a href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">mingfx::Point2::Point2</a></div><div class="ttdeci">Point2()</div><div class="ttdoc">Default point at the origin.</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a38149d8797bf7406fc34cab0ea5a3ac8"><div class="ttname"><a href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8">mingfx::Point2::One</a></div><div class="ttdeci">static const Point2 & One()</div><div class="ttdoc">(1,1) - a shortcut for a special point that is frequently needed</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a4ba487a2038ebc78b461b66f1987053f"><div class="ttname"><a href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f">mingfx::Point2::Point2</a></div><div class="ttdeci">Point2(float *p)</div><div class="ttdoc">Constructs a point given a pointer to x,y data.</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a4f97a7a75276a147ac06fc4dec810ec8"><div class="ttname"><a href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">mingfx::Point2::y</a></div><div class="ttdeci">float y() const</div><div class="ttdoc">Read only access to the y coordinate. Can also use my_point[1]. Use the my_point[1] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00073">point2.h:73</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a50f09df619fd226e6dc3ccff452abab3"><div class="ttname"><a href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3">mingfx::Point2::operator[]</a></div><div class="ttdeci">float & operator[](const int i)</div><div class="ttdoc">Returns a reference to the ith coordinate of the point. Use this accessor if you wish to set the coor...</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a5b99fcf93a0c6d2b247290f5564f8a84"><div class="ttname"><a href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84">mingfx::Point2::operator!=</a></div><div class="ttdeci">bool operator!=(const Point2 &p) const</div><div class="ttdoc">Check for "inequality", taking floating point imprecision into account.</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a60a2b348deab631b51caca3eb715461f"><div class="ttname"><a href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f">mingfx::Point2::Zero</a></div><div class="ttdeci">static const Point2 & Zero()</div><div class="ttdoc">(0,0) - a shortcut for a special point that is frequently needed</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a680648ae01c549c48f7a3d5d75d8791e"><div class="ttname"><a href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e">mingfx::Point2::Lerp</a></div><div class="ttdeci">static Point2 Lerp(const Point2 &a, const Point2 &b, float alpha)</div><div class="ttdoc">Linear interpolation between two points. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b',...</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a716fcff21456f29561ec27118a646483"><div class="ttname"><a href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483">mingfx::Point2::Point2</a></div><div class="ttdeci">Point2(float x, float y)</div><div class="ttdoc">Constructs a point given (x,y,1), where the 1 comes from the use of homogeneous coordinates in comput...</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a7e5b2dcd7e079bdd00354e7ccf9c5c2a"><div class="ttname"><a href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">mingfx::Point2::~Point2</a></div><div class="ttdeci">virtual ~Point2()</div><div class="ttdoc">Point destructor.</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a900567ad5e3c0e6de217b52167c49fd6"><div class="ttname"><a href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6">mingfx::Point2::Lerp</a></div><div class="ttdeci">Point2 Lerp(const Point2 &b, float alpha) const</div><div class="ttdoc">Linear interpolation between this point and another. Alpha=0.0 returns this point,...</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a92447f64ca82f67e855da0c42db12ffa"><div class="ttname"><a href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">mingfx::Point2::x</a></div><div class="ttdeci">float x() const</div><div class="ttdoc">Read only access to the x coordinate. Can also use my_point[0]. Use the my_point[0] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00069">point2.h:69</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_a97464af92444984e275dca38a3f4eef0"><div class="ttname"><a href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0">mingfx::Point2::Point2</a></div><div class="ttdeci">Point2(const Point2 &p)</div><div class="ttdoc">Copy constructor for point.</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_ab00e35eccdc4b7deae8172f5954a86e8"><div class="ttname"><a href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8">mingfx::Point2::w</a></div><div class="ttdeci">float w() const</div><div class="ttdoc">In homogeneous coordinates, the w coordinate for all points is 1.0.</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00076">point2.h:76</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_ae8729260293b993bbf3cb31c0a33edfa"><div class="ttname"><a href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa">mingfx::Point2::operator==</a></div><div class="ttdeci">bool operator==(const Point2 &p) const</div><div class="ttdoc">Check for "equality", taking floating point imprecision into account.</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_af4c0cc334dfbfe8e8068156e6da16542"><div class="ttname"><a href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542">mingfx::Point2::operator[]</a></div><div class="ttdeci">float operator[](const int i) const</div><div class="ttdoc">Read only access to the ith coordinate of the point.</div></div> -<div class="ttc" id="aclassmingfx_1_1_point2_html_afc68153cce7dc528e95cf5ad81c63902"><div class="ttname"><a href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902">mingfx::Point2::operator=</a></div><div class="ttdeci">Point2 & operator=(const Point2 &p)</div><div class="ttdoc">Assignment operator.</div></div> -<div class="ttc" id="anamespacemingfx_html"><div class="ttname"><a href="namespacemingfx.html">mingfx</a></div><div class="ttdoc">Namespace for the MinGfx Toolkit.</div><div class="ttdef"><b>Definition:</b> <a href="aabb_8h_source.html#l00021">aabb.h:21</a></div></div> -<div class="ttc" id="anamespacemingfx_html_a6bc967741341f4f318a505d884192906"><div class="ttname"><a href="namespacemingfx.html#a6bc967741341f4f318a505d884192906">mingfx::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &os, const Color &c)</div></div> -<div class="ttc" id="anamespacemingfx_html_a6eb31e6e81c6e29144799be4c9db404d"><div class="ttname"><a href="namespacemingfx.html#a6eb31e6e81c6e29144799be4c9db404d">mingfx::operator>></a></div><div class="ttdeci">std::istream & operator>>(std::istream &is, Color &c)</div></div> -</div><!-- fragment --></div><!-- contents --> -<!-- HTML footer for doxygen 1.8.9.1--> -<!-- start footer part --> -<hr class="footer"/><address class="footer"><small> -Generated by  <a href="http://www.doxygen.org/index.html"> -<img class="footer" src="doxygen.png" alt="doxygen"/> -</a> 1.9.1 -</small></address> -</body> -</html> +<!-- HTML header for doxygen 1.8.9.1-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.9.1"/>
+<title>MinGfx Toolkit: src/point2.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/x-mathjax-config">
+ MathJax.Hub.Config({
+ extensions: ["tex2jax.js"],
+ jax: ["input/TeX","output/HTML-CSS"],
+});
+</script>
+<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td style="padding-left: 0.5em;">
+ <div id="projectname">MinGfx Toolkit
+  <span id="projectnumber">1.0</span>
+ </div>
+ <div id="projectbrief">A minimal library for writing cross-platform (Windows, OSX, linux) graphics programs.</div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.9.1 -->
+<script type="text/javascript">
+/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
+var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
+/* @license-end */
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+/* @license-end */</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">point2.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="point2_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> <span class="comment">/*</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> This file is part of the MinGfx Project.</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> </span></div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2017,2018 Regents of the University of Minnesota.</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> All Rights Reserved.</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> </span></div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Original Author(s) of this File:</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> Dan Keefe, 2018, University of Minnesota</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> </span></div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> Author(s) of Significant Updates/Modifications to the File:</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ...</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> */</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#ifndef SRC_POINT2_H_</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#define SRC_POINT2_H_</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <iostream></span></div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">namespace </span><a class="code" href="namespacemingfx.html">mingfx</a> {</div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
+<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="point2_8h.html#a432350d21fbc10d5e65eeeb6859511ea"> 22</a></span> <span class="preprocessor">#define MINGFX_MATH_EPSILON 1e-8</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
+<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html"> 28</a></span> <span class="keyword">class </span><a class="code" href="classmingfx_1_1_point2.html">Point2</a> {</div>
+<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1"> 31</a></span>  <a class="code" href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">Point2</a>();</div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
+<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483"> 35</a></span>  <a class="code" href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483">Point2</a>(<span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">x</a>, <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">y</a>);</div>
+<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
+<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f"> 38</a></span>  <a class="code" href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f">Point2</a>(<span class="keywordtype">float</span> *p);</div>
+<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
+<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0"> 41</a></span>  <a class="code" href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0">Point2</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& p);</div>
+<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
+<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a"> 44</a></span>  <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">~Point2</a>();</div>
+<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
+<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa"> 47</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa">operator==</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& p) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
+<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84"> 50</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& p) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
+<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902"> 53</a></span>  <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& <a class="code" href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& p);</div>
+<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
+<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542"> 56</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
+<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3"> 65</a></span>  <span class="keywordtype">float</span>& <a class="code" href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i);</div>
+<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
+<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa"> 69</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">x</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> p[0]; }</div>
+<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
+<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8"> 73</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">y</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> p[1]; }</div>
+<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div>
+<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8"> 76</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8">w</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 1.0; }</div>
+<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div>
+<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
+<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc"> 80</a></span>  <span class="keyword">const</span> <span class="keywordtype">float</span> * <a class="code" href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc">value_ptr</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
+<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6"> 85</a></span>  <a class="code" href="classmingfx_1_1_point2.html">Point2</a> <a class="code" href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6">Lerp</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &b, <span class="keywordtype">float</span> alpha) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
+<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
+<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630"> 89</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& <a class="code" href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630">Origin</a>();</div>
+<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
+<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f"> 92</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& <a class="code" href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f">Zero</a>();</div>
+<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
+<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8"> 95</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>& <a class="code" href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8">One</a>();</div>
+<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  </div>
+<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e"> 99</a></span>  <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> <a class="code" href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e">Lerp</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &a, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &b, <span class="keywordtype">float</span> alpha);</div>
+<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
+<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">float</span> p[2];</div>
+<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> };</div>
+<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
+<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
+<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a58ddc500b8c3e12f8af4515f258540cb"> 106</a></span> std::ostream & <a class="code" href="namespacemingfx.html#a6bc967741341f4f318a505d884192906">operator<< </a>( std::ostream &os, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &p);</div>
+<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a256924759a6718882a2b40e17d3e523d"> 107</a></span> std::istream & <a class="code" href="namespacemingfx.html#a6eb31e6e81c6e29144799be4c9db404d">operator>> </a>( std::istream &is, <a class="code" href="classmingfx_1_1_point2.html">Point2</a> &p);</div>
+<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
+<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
+<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> } <span class="comment">// namespace</span></div>
+<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
+<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#endif</span></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html"><div class="ttname"><a href="classmingfx_1_1_point2.html">mingfx::Point2</a></div><div class="ttdoc">A 2D Point with floating point coordinates, used for storing 2D texture coordinates,...</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00028">point2.h:28</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a027b2412f1c36242ccb06cf37c7e29bc"><div class="ttname"><a href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc">mingfx::Point2::value_ptr</a></div><div class="ttdeci">const float * value_ptr() const</div><div class="ttdoc">Returns a const pointer to the raw data array.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a24d7a5121fceba01b46f3ba0f6525630"><div class="ttname"><a href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630">mingfx::Point2::Origin</a></div><div class="ttdeci">static const Point2 & Origin()</div><div class="ttdoc">(0,0) - a shortcut for a special point that is frequently needed</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a2e5869d810b52be4ba43c8a4f4e117a1"><div class="ttname"><a href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">mingfx::Point2::Point2</a></div><div class="ttdeci">Point2()</div><div class="ttdoc">Default point at the origin.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a38149d8797bf7406fc34cab0ea5a3ac8"><div class="ttname"><a href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8">mingfx::Point2::One</a></div><div class="ttdeci">static const Point2 & One()</div><div class="ttdoc">(1,1) - a shortcut for a special point that is frequently needed</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a4ba487a2038ebc78b461b66f1987053f"><div class="ttname"><a href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f">mingfx::Point2::Point2</a></div><div class="ttdeci">Point2(float *p)</div><div class="ttdoc">Constructs a point given a pointer to x,y data.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a4f97a7a75276a147ac06fc4dec810ec8"><div class="ttname"><a href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">mingfx::Point2::y</a></div><div class="ttdeci">float y() const</div><div class="ttdoc">Read only access to the y coordinate. Can also use my_point[1]. Use the my_point[1] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00073">point2.h:73</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a50f09df619fd226e6dc3ccff452abab3"><div class="ttname"><a href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3">mingfx::Point2::operator[]</a></div><div class="ttdeci">float & operator[](const int i)</div><div class="ttdoc">Returns a reference to the ith coordinate of the point. Use this accessor if you wish to set the coor...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a5b99fcf93a0c6d2b247290f5564f8a84"><div class="ttname"><a href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84">mingfx::Point2::operator!=</a></div><div class="ttdeci">bool operator!=(const Point2 &p) const</div><div class="ttdoc">Check for "inequality", taking floating point imprecision into account.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a60a2b348deab631b51caca3eb715461f"><div class="ttname"><a href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f">mingfx::Point2::Zero</a></div><div class="ttdeci">static const Point2 & Zero()</div><div class="ttdoc">(0,0) - a shortcut for a special point that is frequently needed</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a680648ae01c549c48f7a3d5d75d8791e"><div class="ttname"><a href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e">mingfx::Point2::Lerp</a></div><div class="ttdeci">static Point2 Lerp(const Point2 &a, const Point2 &b, float alpha)</div><div class="ttdoc">Linear interpolation between two points. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b',...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a716fcff21456f29561ec27118a646483"><div class="ttname"><a href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483">mingfx::Point2::Point2</a></div><div class="ttdeci">Point2(float x, float y)</div><div class="ttdoc">Constructs a point given (x,y,1), where the 1 comes from the use of homogeneous coordinates in comput...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a7e5b2dcd7e079bdd00354e7ccf9c5c2a"><div class="ttname"><a href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">mingfx::Point2::~Point2</a></div><div class="ttdeci">virtual ~Point2()</div><div class="ttdoc">Point destructor.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a900567ad5e3c0e6de217b52167c49fd6"><div class="ttname"><a href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6">mingfx::Point2::Lerp</a></div><div class="ttdeci">Point2 Lerp(const Point2 &b, float alpha) const</div><div class="ttdoc">Linear interpolation between this point and another. Alpha=0.0 returns this point,...</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a92447f64ca82f67e855da0c42db12ffa"><div class="ttname"><a href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">mingfx::Point2::x</a></div><div class="ttdeci">float x() const</div><div class="ttdoc">Read only access to the x coordinate. Can also use my_point[0]. Use the my_point[0] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00069">point2.h:69</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_a97464af92444984e275dca38a3f4eef0"><div class="ttname"><a href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0">mingfx::Point2::Point2</a></div><div class="ttdeci">Point2(const Point2 &p)</div><div class="ttdoc">Copy constructor for point.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_ab00e35eccdc4b7deae8172f5954a86e8"><div class="ttname"><a href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8">mingfx::Point2::w</a></div><div class="ttdeci">float w() const</div><div class="ttdoc">In homogeneous coordinates, the w coordinate for all points is 1.0.</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00076">point2.h:76</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_ae8729260293b993bbf3cb31c0a33edfa"><div class="ttname"><a href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa">mingfx::Point2::operator==</a></div><div class="ttdeci">bool operator==(const Point2 &p) const</div><div class="ttdoc">Check for "equality", taking floating point imprecision into account.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_af4c0cc334dfbfe8e8068156e6da16542"><div class="ttname"><a href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542">mingfx::Point2::operator[]</a></div><div class="ttdeci">float operator[](const int i) const</div><div class="ttdoc">Read only access to the ith coordinate of the point.</div></div>
+<div class="ttc" id="aclassmingfx_1_1_point2_html_afc68153cce7dc528e95cf5ad81c63902"><div class="ttname"><a href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902">mingfx::Point2::operator=</a></div><div class="ttdeci">Point2 & operator=(const Point2 &p)</div><div class="ttdoc">Assignment operator.</div></div>
+<div class="ttc" id="anamespacemingfx_html"><div class="ttname"><a href="namespacemingfx.html">mingfx</a></div><div class="ttdoc">Namespace for the MinGfx Toolkit.</div><div class="ttdef"><b>Definition:</b> <a href="aabb_8h_source.html#l00021">aabb.h:21</a></div></div>
+<div class="ttc" id="anamespacemingfx_html_a6bc967741341f4f318a505d884192906"><div class="ttname"><a href="namespacemingfx.html#a6bc967741341f4f318a505d884192906">mingfx::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &os, const Color &c)</div></div>
+<div class="ttc" id="anamespacemingfx_html_a6eb31e6e81c6e29144799be4c9db404d"><div class="ttname"><a href="namespacemingfx.html#a6eb31e6e81c6e29144799be4c9db404d">mingfx::operator>></a></div><div class="ttdeci">std::istream & operator>>(std::istream &is, Color &c)</div></div>
+</div><!-- fragment --></div><!-- contents -->
+<!-- HTML footer for doxygen 1.8.9.1-->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated by  <a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.9.1
+</small></address>
+</body>
+</html>
|