summaryrefslogtreecommitdiffstats
path: root/dev/MinGfx/docs/html/classmingfx_1_1_point2.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dev/MinGfx/docs/html/classmingfx_1_1_point2.html650
1 files changed, 650 insertions, 0 deletions
diff --git a/dev/MinGfx/docs/html/classmingfx_1_1_point2.html b/dev/MinGfx/docs/html/classmingfx_1_1_point2.html
new file mode 100644
index 0000000..4d53aa7
--- /dev/null
+++ b/dev/MinGfx/docs/html/classmingfx_1_1_point2.html
@@ -0,0 +1,650 @@
+<!-- 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: mingfx::Point2 Class Reference</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
+ &#160;<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&amp;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&amp;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="namespacemingfx.html">mingfx</a></li><li class="navelem"><a class="el" href="classmingfx_1_1_point2.html">Point2</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="summary">
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
+<a href="classmingfx_1_1_point2-members.html">List of all members</a> </div>
+ <div class="headertitle">
+<div class="title">mingfx::Point2 Class Reference</div> </div>
+</div><!--header-->
+<div class="contents">
+<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
+<div class="textblock"><p>A 2D Point with floating point coordinates, used for storing 2D texture coordinates, screen-space graphics, and mouse input. </p>
+
+<p class="definition">Definition at line <a class="el" href="point2_8h_source.html#l00028">28</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>
+</div>
+<p><code>#include &lt;<a class="el" href="point2_8h_source.html">point2.h</a>&gt;</code></p>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:a2e5869d810b52be4ba43c8a4f4e117a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">Point2</a> ()</td></tr>
+<tr class="memdesc:a2e5869d810b52be4ba43c8a4f4e117a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default point at the origin. <a href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">More...</a><br /></td></tr>
+<tr class="separator:a2e5869d810b52be4ba43c8a4f4e117a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a716fcff21456f29561ec27118a646483"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483">Point2</a> (float <a class="el" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">x</a>, float <a class="el" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">y</a>)</td></tr>
+<tr class="memdesc:a716fcff21456f29561ec27118a646483"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a point given (x,y,1), where the 1 comes from the use of homogeneous coordinates in computer graphics. <a href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483">More...</a><br /></td></tr>
+<tr class="separator:a716fcff21456f29561ec27118a646483"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a4ba487a2038ebc78b461b66f1987053f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f">Point2</a> (float *p)</td></tr>
+<tr class="memdesc:a4ba487a2038ebc78b461b66f1987053f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a point given a pointer to x,y data. <a href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f">More...</a><br /></td></tr>
+<tr class="separator:a4ba487a2038ebc78b461b66f1987053f"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a97464af92444984e275dca38a3f4eef0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0">Point2</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;p)</td></tr>
+<tr class="memdesc:a97464af92444984e275dca38a3f4eef0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor for point. <a href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0">More...</a><br /></td></tr>
+<tr class="separator:a97464af92444984e275dca38a3f4eef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a7e5b2dcd7e079bdd00354e7ccf9c5c2a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">~Point2</a> ()</td></tr>
+<tr class="memdesc:a7e5b2dcd7e079bdd00354e7ccf9c5c2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Point destructor. <a href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">More...</a><br /></td></tr>
+<tr class="separator:a7e5b2dcd7e079bdd00354e7ccf9c5c2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ae8729260293b993bbf3cb31c0a33edfa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa">operator==</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;p) const</td></tr>
+<tr class="memdesc:ae8729260293b993bbf3cb31c0a33edfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for "equality", taking floating point imprecision into account. <a href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa">More...</a><br /></td></tr>
+<tr class="separator:ae8729260293b993bbf3cb31c0a33edfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a5b99fcf93a0c6d2b247290f5564f8a84"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84">operator!=</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;p) const</td></tr>
+<tr class="memdesc:a5b99fcf93a0c6d2b247290f5564f8a84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for "inequality", taking floating point imprecision into account. <a href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84">More...</a><br /></td></tr>
+<tr class="separator:a5b99fcf93a0c6d2b247290f5564f8a84"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:afc68153cce7dc528e95cf5ad81c63902"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902">operator=</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;p)</td></tr>
+<tr class="memdesc:afc68153cce7dc528e95cf5ad81c63902"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator. <a href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902">More...</a><br /></td></tr>
+<tr class="separator:afc68153cce7dc528e95cf5ad81c63902"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:af4c0cc334dfbfe8e8068156e6da16542"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542">operator[]</a> (const int i) const</td></tr>
+<tr class="memdesc:af4c0cc334dfbfe8e8068156e6da16542"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read only access to the ith coordinate of the point. <a href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542">More...</a><br /></td></tr>
+<tr class="separator:af4c0cc334dfbfe8e8068156e6da16542"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a50f09df619fd226e6dc3ccff452abab3"><td class="memItemLeft" align="right" valign="top">float &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3">operator[]</a> (const int i)</td></tr>
+<tr class="memdesc:a50f09df619fd226e6dc3ccff452abab3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a reference to the ith coordinate of the point. Use this accessor if you wish to set the coordinate rather than just request its value. Example: <a href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3">More...</a><br /></td></tr>
+<tr class="separator:a50f09df619fd226e6dc3ccff452abab3"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a92447f64ca82f67e855da0c42db12ffa"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">x</a> () const</td></tr>
+<tr class="memdesc:a92447f64ca82f67e855da0c42db12ffa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read only access to the x coordinate. Can also use my_point[0]. Use the my_point[0] = 1.0; form if you need to set the value. <a href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">More...</a><br /></td></tr>
+<tr class="separator:a92447f64ca82f67e855da0c42db12ffa"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a4f97a7a75276a147ac06fc4dec810ec8"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">y</a> () const</td></tr>
+<tr class="memdesc:a4f97a7a75276a147ac06fc4dec810ec8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read only access to the y coordinate. Can also use my_point[1]. Use the my_point[1] = 1.0; form if you need to set the value. <a href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">More...</a><br /></td></tr>
+<tr class="separator:a4f97a7a75276a147ac06fc4dec810ec8"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ab00e35eccdc4b7deae8172f5954a86e8"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8">w</a> () const</td></tr>
+<tr class="memdesc:ab00e35eccdc4b7deae8172f5954a86e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">In homogeneous coordinates, the w coordinate for all points is 1.0. <a href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8">More...</a><br /></td></tr>
+<tr class="separator:ab00e35eccdc4b7deae8172f5954a86e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a027b2412f1c36242ccb06cf37c7e29bc"><td class="memItemLeft" align="right" valign="top">const float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc">value_ptr</a> () const</td></tr>
+<tr class="memdesc:a027b2412f1c36242ccb06cf37c7e29bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a const pointer to the raw data array. <a href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc">More...</a><br /></td></tr>
+<tr class="separator:a027b2412f1c36242ccb06cf37c7e29bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a900567ad5e3c0e6de217b52167c49fd6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_point2.html">Point2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6">Lerp</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;b, float alpha) const</td></tr>
+<tr class="memdesc:a900567ad5e3c0e6de217b52167c49fd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linear interpolation between this point and another. Alpha=0.0 returns this point, and alpha=1.0 returns the other point, other values blend between the two. <a href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6">More...</a><br /></td></tr>
+<tr class="separator:a900567ad5e3c0e6de217b52167c49fd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
+Static Public Member Functions</h2></td></tr>
+<tr class="memitem:a24d7a5121fceba01b46f3ba0f6525630"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630">Origin</a> ()</td></tr>
+<tr class="memdesc:a24d7a5121fceba01b46f3ba0f6525630"><td class="mdescLeft">&#160;</td><td class="mdescRight">(0,0) - a shortcut for a special point that is frequently needed <a href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630">More...</a><br /></td></tr>
+<tr class="separator:a24d7a5121fceba01b46f3ba0f6525630"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a60a2b348deab631b51caca3eb715461f"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f">Zero</a> ()</td></tr>
+<tr class="memdesc:a60a2b348deab631b51caca3eb715461f"><td class="mdescLeft">&#160;</td><td class="mdescRight">(0,0) - a shortcut for a special point that is frequently needed <a href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f">More...</a><br /></td></tr>
+<tr class="separator:a60a2b348deab631b51caca3eb715461f"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a38149d8797bf7406fc34cab0ea5a3ac8"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8">One</a> ()</td></tr>
+<tr class="memdesc:a38149d8797bf7406fc34cab0ea5a3ac8"><td class="mdescLeft">&#160;</td><td class="mdescRight">(1,1) - a shortcut for a special point that is frequently needed <a href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8">More...</a><br /></td></tr>
+<tr class="separator:a38149d8797bf7406fc34cab0ea5a3ac8"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a680648ae01c549c48f7a3d5d75d8791e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classmingfx_1_1_point2.html">Point2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e">Lerp</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;a, const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;b, float alpha)</td></tr>
+<tr class="memdesc:a680648ae01c549c48f7a3d5d75d8791e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linear interpolation between two points. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b', other values blend between the two. <a href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e">More...</a><br /></td></tr>
+<tr class="separator:a680648ae01c549c48f7a3d5d75d8791e"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
+<a id="a2e5869d810b52be4ba43c8a4f4e117a1"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a2e5869d810b52be4ba43c8a4f4e117a1">&#9670;&nbsp;</a></span>Point2() <span class="overload">[1/4]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">mingfx::Point2::Point2 </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Default point at the origin. </p>
+
+</div>
+</div>
+<a id="a716fcff21456f29561ec27118a646483"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a716fcff21456f29561ec27118a646483">&#9670;&nbsp;</a></span>Point2() <span class="overload">[2/4]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">mingfx::Point2::Point2 </td>
+ <td>(</td>
+ <td class="paramtype">float&#160;</td>
+ <td class="paramname"><em>x</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">float&#160;</td>
+ <td class="paramname"><em>y</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Constructs a point given (x,y,1), where the 1 comes from the use of homogeneous coordinates in computer graphics. </p>
+
+</div>
+</div>
+<a id="a4ba487a2038ebc78b461b66f1987053f"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a4ba487a2038ebc78b461b66f1987053f">&#9670;&nbsp;</a></span>Point2() <span class="overload">[3/4]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">mingfx::Point2::Point2 </td>
+ <td>(</td>
+ <td class="paramtype">float *&#160;</td>
+ <td class="paramname"><em>p</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Constructs a point given a pointer to x,y data. </p>
+
+</div>
+</div>
+<a id="a97464af92444984e275dca38a3f4eef0"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a97464af92444984e275dca38a3f4eef0">&#9670;&nbsp;</a></span>Point2() <span class="overload">[4/4]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">mingfx::Point2::Point2 </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
+ <td class="paramname"><em>p</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Copy constructor for point. </p>
+
+</div>
+</div>
+<a id="a7e5b2dcd7e079bdd00354e7ccf9c5c2a"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">&#9670;&nbsp;</a></span>~Point2()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">virtual mingfx::Point2::~Point2 </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Point destructor. </p>
+
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
+<a id="a680648ae01c549c48f7a3d5d75d8791e"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a680648ae01c549c48f7a3d5d75d8791e">&#9670;&nbsp;</a></span>Lerp() <span class="overload">[1/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">static <a class="el" href="classmingfx_1_1_point2.html">Point2</a> mingfx::Point2::Lerp </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
+ <td class="paramname"><em>a</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
+ <td class="paramname"><em>b</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">float&#160;</td>
+ <td class="paramname"><em>alpha</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">static</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Linear interpolation between two points. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b', other values blend between the two. </p>
+
+</div>
+</div>
+<a id="a900567ad5e3c0e6de217b52167c49fd6"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a900567ad5e3c0e6de217b52167c49fd6">&#9670;&nbsp;</a></span>Lerp() <span class="overload">[2/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname"><a class="el" href="classmingfx_1_1_point2.html">Point2</a> mingfx::Point2::Lerp </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
+ <td class="paramname"><em>b</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">float&#160;</td>
+ <td class="paramname"><em>alpha</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Linear interpolation between this point and another. Alpha=0.0 returns this point, and alpha=1.0 returns the other point, other values blend between the two. </p>
+
+</div>
+</div>
+<a id="a38149d8797bf7406fc34cab0ea5a3ac8"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a38149d8797bf7406fc34cab0ea5a3ac8">&#9670;&nbsp;</a></span>One()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a>&amp; mingfx::Point2::One </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">static</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>(1,1) - a shortcut for a special point that is frequently needed </p>
+
+</div>
+</div>
+<a id="a5b99fcf93a0c6d2b247290f5564f8a84"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a5b99fcf93a0c6d2b247290f5564f8a84">&#9670;&nbsp;</a></span>operator!=()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool mingfx::Point2::operator!= </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
+ <td class="paramname"><em>p</em></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Check for "inequality", taking floating point imprecision into account. </p>
+
+</div>
+</div>
+<a id="afc68153cce7dc528e95cf5ad81c63902"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#afc68153cce7dc528e95cf5ad81c63902">&#9670;&nbsp;</a></span>operator=()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname"><a class="el" href="classmingfx_1_1_point2.html">Point2</a>&amp; mingfx::Point2::operator= </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
+ <td class="paramname"><em>p</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Assignment operator. </p>
+
+</div>
+</div>
+<a id="ae8729260293b993bbf3cb31c0a33edfa"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ae8729260293b993bbf3cb31c0a33edfa">&#9670;&nbsp;</a></span>operator==()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool mingfx::Point2::operator== </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
+ <td class="paramname"><em>p</em></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Check for "equality", taking floating point imprecision into account. </p>
+
+</div>
+</div>
+<a id="a50f09df619fd226e6dc3ccff452abab3"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a50f09df619fd226e6dc3ccff452abab3">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[1/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">float&amp; mingfx::Point2::operator[] </td>
+ <td>(</td>
+ <td class="paramtype">const int&#160;</td>
+ <td class="paramname"><em>i</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Returns a reference to the ith coordinate of the point. Use this accessor if you wish to set the coordinate rather than just request its value. Example: </p>
+<div class="fragment"><div class="line"><a class="code" href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">Point2</a> a;</div>
+<div class="line">a[0] = 5.0; <span class="comment">// set the x-coordinate of the point</span></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><!-- fragment -->
+</div>
+</div>
+<a id="af4c0cc334dfbfe8e8068156e6da16542"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#af4c0cc334dfbfe8e8068156e6da16542">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[2/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">float mingfx::Point2::operator[] </td>
+ <td>(</td>
+ <td class="paramtype">const int&#160;</td>
+ <td class="paramname"><em>i</em></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Read only access to the ith coordinate of the point. </p>
+
+</div>
+</div>
+<a id="a24d7a5121fceba01b46f3ba0f6525630"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a24d7a5121fceba01b46f3ba0f6525630">&#9670;&nbsp;</a></span>Origin()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a>&amp; mingfx::Point2::Origin </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">static</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>(0,0) - a shortcut for a special point that is frequently needed </p>
+
+</div>
+</div>
+<a id="a027b2412f1c36242ccb06cf37c7e29bc"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a027b2412f1c36242ccb06cf37c7e29bc">&#9670;&nbsp;</a></span>value_ptr()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">const float* mingfx::Point2::value_ptr </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Returns a const pointer to the raw data array. </p>
+
+</div>
+</div>
+<a id="ab00e35eccdc4b7deae8172f5954a86e8"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ab00e35eccdc4b7deae8172f5954a86e8">&#9670;&nbsp;</a></span>w()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">float mingfx::Point2::w </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inline</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>In homogeneous coordinates, the w coordinate for all points is 1.0. </p>
+
+<p class="definition">Definition at line <a class="el" href="point2_8h_source.html#l00076">76</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>
+
+</div>
+</div>
+<a id="a92447f64ca82f67e855da0c42db12ffa"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a92447f64ca82f67e855da0c42db12ffa">&#9670;&nbsp;</a></span>x()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">float mingfx::Point2::x </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inline</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Read only access to the x coordinate. Can also use my_point[0]. Use the my_point[0] = 1.0; form if you need to set the value. </p>
+
+<p class="definition">Definition at line <a class="el" href="point2_8h_source.html#l00069">69</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>
+
+</div>
+</div>
+<a id="a4f97a7a75276a147ac06fc4dec810ec8"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a4f97a7a75276a147ac06fc4dec810ec8">&#9670;&nbsp;</a></span>y()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">float mingfx::Point2::y </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inline</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Read only access to the y coordinate. Can also use my_point[1]. Use the my_point[1] = 1.0; form if you need to set the value. </p>
+
+<p class="definition">Definition at line <a class="el" href="point2_8h_source.html#l00073">73</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>
+
+</div>
+</div>
+<a id="a60a2b348deab631b51caca3eb715461f"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a60a2b348deab631b51caca3eb715461f">&#9670;&nbsp;</a></span>Zero()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a>&amp; mingfx::Point2::Zero </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">static</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>(0,0) - a shortcut for a special point that is frequently needed </p>
+
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following file:<ul>
+<li>src/<a class="el" href="point2_8h_source.html">point2.h</a></li>
+</ul>
+</div><!-- contents -->
+<!-- HTML footer for doxygen 1.8.9.1-->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.9.1
+</small></address>
+</body>
+</html>