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/classmingfx_1_1_vector3.html | |
parent | Fix parenthesis (diff) | |
download | csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.gz csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.bz2 csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.lz csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.xz csci4611-342403a02f8063903d0f38327430721d4d0ae331.tar.zst csci4611-342403a02f8063903d0f38327430721d4d0ae331.zip |
do ass1submission-p1.0
Diffstat (limited to 'dev/MinGfx/docs/html/classmingfx_1_1_vector3.html')
-rw-r--r-- | dev/MinGfx/docs/html/classmingfx_1_1_vector3.html | 2036 |
1 files changed, 1018 insertions, 1018 deletions
diff --git a/dev/MinGfx/docs/html/classmingfx_1_1_vector3.html b/dev/MinGfx/docs/html/classmingfx_1_1_vector3.html index e46afd3..00bac8c 100644 --- a/dev/MinGfx/docs/html/classmingfx_1_1_vector3.html +++ b/dev/MinGfx/docs/html/classmingfx_1_1_vector3.html @@ -1,1018 +1,1018 @@ -<!-- 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::Vector3 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 -  <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="namespacemingfx.html">mingfx</a></li><li class="navelem"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a></li> </ul> -</div> -</div><!-- top --> -<div class="header"> - <div class="summary"> -<a href="#pub-methods">Public Member Functions</a> | -<a href="#pub-static-methods">Static Public Member Functions</a> | -<a href="classmingfx_1_1_vector3-members.html">List of all members</a> </div> - <div class="headertitle"> -<div class="title">mingfx::Vector3 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 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graphics operations. </p> -<p>Vector3s can be transformed by a <a class="el" href="classmingfx_1_1_matrix4.html" title="A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...">Matrix4</a>, and a <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> can be created by subtracting two Point3s. Example: </p><div class="fragment"><div class="line"><span class="comment">// subtracting two points creates a vector</span></div> -<div class="line">Point3 a(0,0,0);</div> -<div class="line">Point3 b(2,0,0);</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> c = b - a;</div> -<div class="line"> </div> -<div class="line"><span class="comment">// vectors can be transformed by Matrix4s</span></div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> dir = c.ToUnit();</div> -<div class="line">Matrix4 M = Matrix4::RotateX(<a class="code" href="classmingfx_1_1_gfx_math.html#a39a2b5973249fb3aefc210b18b0fdff3">GfxMath::ToDegrees</a>(30.0));</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> dir_transformed = M * dir;</div> -<div class="line"> </div> -<div class="line"><span class="comment">// vectors can be added and subtracted</span></div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> d(1,0,0);</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> e = c + d;</div> -<div class="line"> </div> -<div class="line"><span class="comment">// and we can do the usual dot products and cross products too</span></div> -<div class="line"><span class="keywordtype">float</span> f = d.Dot(e);</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> g = b.Cross(d);</div> -<div class="line"> </div> -<div class="line"><span class="comment">// you can access the individual components of the vector in two ways:</span></div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> v(1,2,3);</div> -<div class="line"><span class="keywordtype">float</span> option1 = v.x();</div> -<div class="line"><span class="keywordtype">float</span> option2 = v[0];</div> -<div class="line"> </div> -<div class="line"><span class="comment">// to set an individual component of the vector use the [] operator:</span></div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a>;</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a>[0] = 0.4;</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a>[1] = 1.2;</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a>[2] = 3.1;</div> -<div class="line"> </div> -<div class="line"><span class="comment">// you can print the vector by sending it to stdout:</span></div> -<div class="line">std::cout << v << std::endl;</div> -<div class="ttc" id="aclassmingfx_1_1_gfx_math_html_a39a2b5973249fb3aefc210b18b0fdff3"><div class="ttname"><a href="classmingfx_1_1_gfx_math.html#a39a2b5973249fb3aefc210b18b0fdff3">mingfx::GfxMath::ToDegrees</a></div><div class="ttdeci">static float ToDegrees(float radians)</div></div> -<div class="ttc" id="aclassmingfx_1_1_vector3_html_a2556298f536ba115019982222ce6e0c5"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">mingfx::Vector3::w</a></div><div class="ttdeci">float w() const</div><div class="ttdoc">In homogeneous coordinates, the w coordinate for all vectors is 0.0.</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00115">vector3.h:115</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_vector3_html_a7f57af8bbecbc793fa17def4521de4dd"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">mingfx::Vector3::Vector3</a></div><div class="ttdeci">Vector3()</div><div class="ttdoc">Default constructor to create zero vector.</div></div> -</div><!-- fragment --> -<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00062">62</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p> -</div> -<p><code>#include <<a class="el" href="vector3_8h_source.html">vector3.h</a>></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:a7f57af8bbecbc793fa17def4521de4dd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> ()</td></tr> -<tr class="memdesc:a7f57af8bbecbc793fa17def4521de4dd"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor to create zero vector. <a href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">More...</a><br /></td></tr> -<tr class="separator:a7f57af8bbecbc793fa17def4521de4dd"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a256018f34e230d542027d07d14fd6e65"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a256018f34e230d542027d07d14fd6e65">Vector3</a> (float <a class="el" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a>, float <a class="el" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a>, float <a class="el" href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">z</a>)</td></tr> -<tr class="memdesc:a256018f34e230d542027d07d14fd6e65"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a vector (x,y,z,0), where the 0 comes from the use of homogeneous coordinates in computer graphics. <a href="classmingfx_1_1_vector3.html#a256018f34e230d542027d07d14fd6e65">More...</a><br /></td></tr> -<tr class="separator:a256018f34e230d542027d07d14fd6e65"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a95b274c7a5ff118af20bc71682c6b1f1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a95b274c7a5ff118af20bc71682c6b1f1">Vector3</a> (float *v)</td></tr> -<tr class="memdesc:a95b274c7a5ff118af20bc71682c6b1f1"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a vector given a pointer to x,y,z data. <a href="classmingfx_1_1_vector3.html#a95b274c7a5ff118af20bc71682c6b1f1">More...</a><br /></td></tr> -<tr class="separator:a95b274c7a5ff118af20bc71682c6b1f1"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:af6100965af7770f833dbf0c9f30f4fdd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#af6100965af7770f833dbf0c9f30f4fdd">Vector3</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v)</td></tr> -<tr class="memdesc:af6100965af7770f833dbf0c9f30f4fdd"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor for vector. <a href="classmingfx_1_1_vector3.html#af6100965af7770f833dbf0c9f30f4fdd">More...</a><br /></td></tr> -<tr class="separator:af6100965af7770f833dbf0c9f30f4fdd"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a6e0d09d774615bcfde5645c22a645969"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a6e0d09d774615bcfde5645c22a645969">~Vector3</a> ()</td></tr> -<tr class="memdesc:a6e0d09d774615bcfde5645c22a645969"><td class="mdescLeft"> </td><td class="mdescRight">Vector destructor. <a href="classmingfx_1_1_vector3.html#a6e0d09d774615bcfde5645c22a645969">More...</a><br /></td></tr> -<tr class="separator:a6e0d09d774615bcfde5645c22a645969"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a85486d0a355417fe4b41fa64146c9e98"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a85486d0a355417fe4b41fa64146c9e98">operator==</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v) const</td></tr> -<tr class="memdesc:a85486d0a355417fe4b41fa64146c9e98"><td class="mdescLeft"> </td><td class="mdescRight">Check for "equality", taking floating point imprecision into account. <a href="classmingfx_1_1_vector3.html#a85486d0a355417fe4b41fa64146c9e98">More...</a><br /></td></tr> -<tr class="separator:a85486d0a355417fe4b41fa64146c9e98"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ab93acb916c310920b9c011159eaaa016"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#ab93acb916c310920b9c011159eaaa016">operator!=</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v) const</td></tr> -<tr class="memdesc:ab93acb916c310920b9c011159eaaa016"><td class="mdescLeft"> </td><td class="mdescRight">Check for "inequality", taking floating point imprecision into account. <a href="classmingfx_1_1_vector3.html#ab93acb916c310920b9c011159eaaa016">More...</a><br /></td></tr> -<tr class="separator:ab93acb916c310920b9c011159eaaa016"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa5b1c05c285fad7f2709f6f351a63608"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aa5b1c05c285fad7f2709f6f351a63608">operator=</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v)</td></tr> -<tr class="memdesc:aa5b1c05c285fad7f2709f6f351a63608"><td class="mdescLeft"> </td><td class="mdescRight">Vector assignment operator. <a href="classmingfx_1_1_vector3.html#aa5b1c05c285fad7f2709f6f351a63608">More...</a><br /></td></tr> -<tr class="separator:aa5b1c05c285fad7f2709f6f351a63608"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa37b1fc4b1df9f72726d981c08cd0d1b"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aa37b1fc4b1df9f72726d981c08cd0d1b">operator[]</a> (const int i) const</td></tr> -<tr class="memdesc:aa37b1fc4b1df9f72726d981c08cd0d1b"><td class="mdescLeft"> </td><td class="mdescRight">Read only access to the ith coordinate of the vector. <a href="classmingfx_1_1_vector3.html#aa37b1fc4b1df9f72726d981c08cd0d1b">More...</a><br /></td></tr> -<tr class="separator:aa37b1fc4b1df9f72726d981c08cd0d1b"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:abcdda4627b24af879aba38d4fc0e6f71"><td class="memItemLeft" align="right" valign="top">float & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#abcdda4627b24af879aba38d4fc0e6f71">operator[]</a> (const int i)</td></tr> -<tr class="memdesc:abcdda4627b24af879aba38d4fc0e6f71"><td class="mdescLeft"> </td><td class="mdescRight">Returns a reference to the ith coordinate of the vector. Use this accessor if you wish to set the coordinate rather than just request its value. Example: <a href="classmingfx_1_1_vector3.html#abcdda4627b24af879aba38d4fc0e6f71">More...</a><br /></td></tr> -<tr class="separator:abcdda4627b24af879aba38d4fc0e6f71"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ac380342bfa614c9a3babe1efd14d2cf4"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a> () const</td></tr> -<tr class="memdesc:ac380342bfa614c9a3babe1efd14d2cf4"><td class="mdescLeft"> </td><td class="mdescRight">Read only access to the x coordinate. Can also use my_vector[0]. Use the my_vector[0] = 1.0; form if you need to set the value. <a href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">More...</a><br /></td></tr> -<tr class="separator:ac380342bfa614c9a3babe1efd14d2cf4"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aeb74fbc0a970b40abb0db8f8e490ee17"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a> () const</td></tr> -<tr class="memdesc:aeb74fbc0a970b40abb0db8f8e490ee17"><td class="mdescLeft"> </td><td class="mdescRight">Read only access to the y coordinate. Can also use my_vector[1]. Use the my_vector[1] = 1.0; form if you need to set the value. <a href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">More...</a><br /></td></tr> -<tr class="separator:aeb74fbc0a970b40abb0db8f8e490ee17"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a78d1dba881575517f0427d55cc418df6"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">z</a> () const</td></tr> -<tr class="memdesc:a78d1dba881575517f0427d55cc418df6"><td class="mdescLeft"> </td><td class="mdescRight">Read only access to the z coordinate. Can also use my_vector[2]. Use the my_vector[2] = 1.0; form if you need to set the value. <a href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">More...</a><br /></td></tr> -<tr class="separator:a78d1dba881575517f0427d55cc418df6"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a2556298f536ba115019982222ce6e0c5"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a> () const</td></tr> -<tr class="memdesc:a2556298f536ba115019982222ce6e0c5"><td class="mdescLeft"> </td><td class="mdescRight">In homogeneous coordinates, the w coordinate for all vectors is 0.0. <a href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">More...</a><br /></td></tr> -<tr class="separator:a2556298f536ba115019982222ce6e0c5"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a31692a459a8056fe220d115eb5addc88"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a31692a459a8056fe220d115eb5addc88">Dot</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v) const</td></tr> -<tr class="memdesc:a31692a459a8056fe220d115eb5addc88"><td class="mdescLeft"> </td><td class="mdescRight">Returns "this dot v", for example: <a href="classmingfx_1_1_vector3.html#a31692a459a8056fe220d115eb5addc88">More...</a><br /></td></tr> -<tr class="separator:a31692a459a8056fe220d115eb5addc88"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a38cd4deed7d342464619b34b0ef95bec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a38cd4deed7d342464619b34b0ef95bec">Cross</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v) const</td></tr> -<tr class="memdesc:a38cd4deed7d342464619b34b0ef95bec"><td class="mdescLeft"> </td><td class="mdescRight">Returns "this cross v", for example: <a href="classmingfx_1_1_vector3.html#a38cd4deed7d342464619b34b0ef95bec">More...</a><br /></td></tr> -<tr class="separator:a38cd4deed7d342464619b34b0ef95bec"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a7633dc1625b1f2e6b381438e896b45a3"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a7633dc1625b1f2e6b381438e896b45a3">Length</a> () const</td></tr> -<tr class="memdesc:a7633dc1625b1f2e6b381438e896b45a3"><td class="mdescLeft"> </td><td class="mdescRight">Returns the length of the vector. <a href="classmingfx_1_1_vector3.html#a7633dc1625b1f2e6b381438e896b45a3">More...</a><br /></td></tr> -<tr class="separator:a7633dc1625b1f2e6b381438e896b45a3"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a9b8e9ecbe10477adec527842f62d0dca"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a9b8e9ecbe10477adec527842f62d0dca">Normalize</a> ()</td></tr> -<tr class="memdesc:a9b8e9ecbe10477adec527842f62d0dca"><td class="mdescLeft"> </td><td class="mdescRight">Normalizes the vector by making it unit length. <a href="classmingfx_1_1_vector3.html#a9b8e9ecbe10477adec527842f62d0dca">More...</a><br /></td></tr> -<tr class="separator:a9b8e9ecbe10477adec527842f62d0dca"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a3caef3c6f24b90730ef70c84ce0e0d71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a3caef3c6f24b90730ef70c84ce0e0d71">ToUnit</a> () const</td></tr> -<tr class="memdesc:a3caef3c6f24b90730ef70c84ce0e0d71"><td class="mdescLeft"> </td><td class="mdescRight">Returns a normalized (i.e., unit length) version of the vector without modifying the original 'this' vector. <a href="classmingfx_1_1_vector3.html#a3caef3c6f24b90730ef70c84ce0e0d71">More...</a><br /></td></tr> -<tr class="separator:a3caef3c6f24b90730ef70c84ce0e0d71"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa7ddfd662e866c019a772ba66eae7331"><td class="memItemLeft" align="right" valign="top">const float * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aa7ddfd662e866c019a772ba66eae7331">value_ptr</a> () const</td></tr> -<tr class="memdesc:aa7ddfd662e866c019a772ba66eae7331"><td class="mdescLeft"> </td><td class="mdescRight">Returns a const pointer to the raw data array. <a href="classmingfx_1_1_vector3.html#aa7ddfd662e866c019a772ba66eae7331">More...</a><br /></td></tr> -<tr class="separator:aa7ddfd662e866c019a772ba66eae7331"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a8dafc21c64a4964bac27519972d909b6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a8dafc21c64a4964bac27519972d909b6">Lerp</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &b, float alpha) const</td></tr> -<tr class="memdesc:a8dafc21c64a4964bac27519972d909b6"><td class="mdescLeft"> </td><td class="mdescRight">Linear interpolation between this vector and another. Alpha=0.0 returns this vector, and alpha=1.0 returns the other vector, other values blend between the two. <a href="classmingfx_1_1_vector3.html#a8dafc21c64a4964bac27519972d909b6">More...</a><br /></td></tr> -<tr class="separator:a8dafc21c64a4964bac27519972d909b6"><td class="memSeparator" colspan="2"> </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:a52bf8582baa71e7d6f80c412687d9714"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a52bf8582baa71e7d6f80c412687d9714">Zero</a> ()</td></tr> -<tr class="memdesc:a52bf8582baa71e7d6f80c412687d9714"><td class="mdescLeft"> </td><td class="mdescRight">(0,0,0) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#a52bf8582baa71e7d6f80c412687d9714">More...</a><br /></td></tr> -<tr class="separator:a52bf8582baa71e7d6f80c412687d9714"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:af71b12760516a9cc4837ba9e1dee28db"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#af71b12760516a9cc4837ba9e1dee28db">One</a> ()</td></tr> -<tr class="memdesc:af71b12760516a9cc4837ba9e1dee28db"><td class="mdescLeft"> </td><td class="mdescRight">(1,1,1) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#af71b12760516a9cc4837ba9e1dee28db">More...</a><br /></td></tr> -<tr class="separator:af71b12760516a9cc4837ba9e1dee28db"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ae8d822fdea67f63580b4e1f78f5b8922"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#ae8d822fdea67f63580b4e1f78f5b8922">UnitX</a> ()</td></tr> -<tr class="memdesc:ae8d822fdea67f63580b4e1f78f5b8922"><td class="mdescLeft"> </td><td class="mdescRight">(1,0,0) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#ae8d822fdea67f63580b4e1f78f5b8922">More...</a><br /></td></tr> -<tr class="separator:ae8d822fdea67f63580b4e1f78f5b8922"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a8d31e433d1ac04aaceea1b1dcd1643df"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a8d31e433d1ac04aaceea1b1dcd1643df">UnitY</a> ()</td></tr> -<tr class="memdesc:a8d31e433d1ac04aaceea1b1dcd1643df"><td class="mdescLeft"> </td><td class="mdescRight">(0,1,0) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#a8d31e433d1ac04aaceea1b1dcd1643df">More...</a><br /></td></tr> -<tr class="separator:a8d31e433d1ac04aaceea1b1dcd1643df"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a4b696b0d1143d6e30a34a2f889d2ca61"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a4b696b0d1143d6e30a34a2f889d2ca61">UnitZ</a> ()</td></tr> -<tr class="memdesc:a4b696b0d1143d6e30a34a2f889d2ca61"><td class="mdescLeft"> </td><td class="mdescRight">(0,0,1) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#a4b696b0d1143d6e30a34a2f889d2ca61">More...</a><br /></td></tr> -<tr class="separator:a4b696b0d1143d6e30a34a2f889d2ca61"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aeff0177e2111139469b60733248fad8d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aeff0177e2111139469b60733248fad8d">Normalize</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v)</td></tr> -<tr class="memdesc:aeff0177e2111139469b60733248fad8d"><td class="mdescLeft"> </td><td class="mdescRight">Returns a new vector that is the unit version of v. <a href="classmingfx_1_1_vector3.html#aeff0177e2111139469b60733248fad8d">More...</a><br /></td></tr> -<tr class="separator:aeff0177e2111139469b60733248fad8d"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a45d7d211135edd97ca21b047439db485"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a45d7d211135edd97ca21b047439db485">Cross</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v1, const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v2)</td></tr> -<tr class="memdesc:a45d7d211135edd97ca21b047439db485"><td class="mdescLeft"> </td><td class="mdescRight">Returns v1 cross v2. <a href="classmingfx_1_1_vector3.html#a45d7d211135edd97ca21b047439db485">More...</a><br /></td></tr> -<tr class="separator:a45d7d211135edd97ca21b047439db485"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a235fb20d4075960d2ce6198dc95ac507"><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a235fb20d4075960d2ce6198dc95ac507">Dot</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v1, const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v2)</td></tr> -<tr class="memdesc:a235fb20d4075960d2ce6198dc95ac507"><td class="mdescLeft"> </td><td class="mdescRight">Returns v1 dot v2. <a href="classmingfx_1_1_vector3.html#a235fb20d4075960d2ce6198dc95ac507">More...</a><br /></td></tr> -<tr class="separator:a235fb20d4075960d2ce6198dc95ac507"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a489b042bedf8fa329ac05fe905ca1c6f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a489b042bedf8fa329ac05fe905ca1c6f">Lerp</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &a, const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &b, float alpha)</td></tr> -<tr class="memdesc:a489b042bedf8fa329ac05fe905ca1c6f"><td class="mdescLeft"> </td><td class="mdescRight">Linear interpolation between two vectors. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b', other values blend between the two. <a href="classmingfx_1_1_vector3.html#a489b042bedf8fa329ac05fe905ca1c6f">More...</a><br /></td></tr> -<tr class="separator:a489b042bedf8fa329ac05fe905ca1c6f"><td class="memSeparator" colspan="2"> </td></tr> -</table> -<h2 class="groupheader">Constructor & Destructor Documentation</h2> -<a id="a7f57af8bbecbc793fa17def4521de4dd"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a7f57af8bbecbc793fa17def4521de4dd">◆ </a></span>Vector3() <span class="overload">[1/4]</span></h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">mingfx::Vector3::Vector3 </td> - <td>(</td> - <td class="paramname"></td><td>)</td> - <td></td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Default constructor to create zero vector. </p> - -</div> -</div> -<a id="a256018f34e230d542027d07d14fd6e65"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a256018f34e230d542027d07d14fd6e65">◆ </a></span>Vector3() <span class="overload">[2/4]</span></h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">mingfx::Vector3::Vector3 </td> - <td>(</td> - <td class="paramtype">float </td> - <td class="paramname"><em>x</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">float </td> - <td class="paramname"><em>y</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">float </td> - <td class="paramname"><em>z</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td></td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Constructs a vector (x,y,z,0), where the 0 comes from the use of homogeneous coordinates in computer graphics. </p> - -</div> -</div> -<a id="a95b274c7a5ff118af20bc71682c6b1f1"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a95b274c7a5ff118af20bc71682c6b1f1">◆ </a></span>Vector3() <span class="overload">[3/4]</span></h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">mingfx::Vector3::Vector3 </td> - <td>(</td> - <td class="paramtype">float * </td> - <td class="paramname"><em>v</em></td><td>)</td> - <td></td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Constructs a vector given a pointer to x,y,z data. </p> - -</div> -</div> -<a id="af6100965af7770f833dbf0c9f30f4fdd"></a> -<h2 class="memtitle"><span class="permalink"><a href="#af6100965af7770f833dbf0c9f30f4fdd">◆ </a></span>Vector3() <span class="overload">[4/4]</span></h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">mingfx::Vector3::Vector3 </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v</em></td><td>)</td> - <td></td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Copy constructor for vector. </p> - -</div> -</div> -<a id="a6e0d09d774615bcfde5645c22a645969"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a6e0d09d774615bcfde5645c22a645969">◆ </a></span>~Vector3()</h2> - -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">virtual mingfx::Vector3::~Vector3 </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>Vector destructor. </p> - -</div> -</div> -<h2 class="groupheader">Member Function Documentation</h2> -<a id="a38cd4deed7d342464619b34b0ef95bec"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a38cd4deed7d342464619b34b0ef95bec">◆ </a></span>Cross() <span class="overload">[1/2]</span></h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> mingfx::Vector3::Cross </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Returns "this cross v", for example: </p> -<div class="fragment"><div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a>(1,0,0);</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a>(0,1,0);</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">z</a> = <a class="code" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a>.Cross(<a class="code" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a>);</div> -<div class="ttc" id="aclassmingfx_1_1_vector3_html_a78d1dba881575517f0427d55cc418df6"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">mingfx::Vector3::z</a></div><div class="ttdeci">float z() const</div><div class="ttdoc">Read only access to the z coordinate. Can also use my_vector[2]. Use the my_vector[2] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00112">vector3.h:112</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_vector3_html_ac380342bfa614c9a3babe1efd14d2cf4"><div class="ttname"><a href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">mingfx::Vector3::x</a></div><div class="ttdeci">float x() const</div><div class="ttdoc">Read only access to the x coordinate. Can also use my_vector[0]. Use the my_vector[0] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00104">vector3.h:104</a></div></div> -<div class="ttc" id="aclassmingfx_1_1_vector3_html_aeb74fbc0a970b40abb0db8f8e490ee17"><div class="ttname"><a href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">mingfx::Vector3::y</a></div><div class="ttdeci">float y() const</div><div class="ttdoc">Read only access to the y coordinate. Can also use my_vector[1]. Use the my_vector[1] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00108">vector3.h:108</a></div></div> -</div><!-- fragment --> -</div> -</div> -<a id="a45d7d211135edd97ca21b047439db485"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a45d7d211135edd97ca21b047439db485">◆ </a></span>Cross() <span class="overload">[2/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_vector3.html">Vector3</a> mingfx::Vector3::Cross </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v1</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v2</em> </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>Returns v1 cross v2. </p> -<p>This is just an alternative syntax for <a class="el" href="classmingfx_1_1_vector3.html#a38cd4deed7d342464619b34b0ef95bec" title="Returns "this cross v", for example:">Cross()</a>. Example: ~~~ <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> x(1,0,0); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> y(0,1,0); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> z1 = Vector3::Cross(x,y); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> z2 = x.Cross(y); z1 and z2 are the same. ~~~ </p> - -</div> -</div> -<a id="a31692a459a8056fe220d115eb5addc88"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a31692a459a8056fe220d115eb5addc88">◆ </a></span>Dot() <span class="overload">[1/2]</span></h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">float mingfx::Vector3::Dot </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Returns "this dot v", for example: </p> -<div class="fragment"><div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> a(1,0,0);</div> -<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> b(0.5,0,0);</div> -<div class="line"><span class="keywordtype">float</span> c = a.Dot(b);</div> -</div><!-- fragment --> -</div> -</div> -<a id="a235fb20d4075960d2ce6198dc95ac507"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a235fb20d4075960d2ce6198dc95ac507">◆ </a></span>Dot() <span class="overload">[2/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 float mingfx::Vector3::Dot </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v1</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v2</em> </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>Returns v1 dot v2. </p> -<p>This is just an alternative syntax for <a class="el" href="classmingfx_1_1_vector3.html#a31692a459a8056fe220d115eb5addc88" title="Returns "this dot v", for example:">Dot()</a>. Example: ~~~ <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> a(1,0,0); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> b(0.5,0,0); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> c1 = a.Dot(b); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> c2 = Vector3::Dot(a,b); c1 and c2 are the same. ~~~ </p> - -</div> -</div> -<a id="a7633dc1625b1f2e6b381438e896b45a3"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a7633dc1625b1f2e6b381438e896b45a3">◆ </a></span>Length()</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">float mingfx::Vector3::Length </td> - <td>(</td> - <td class="paramname"></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Returns the length of the vector. </p> - -</div> -</div> -<a id="a489b042bedf8fa329ac05fe905ca1c6f"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a489b042bedf8fa329ac05fe905ca1c6f">◆ </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_vector3.html">Vector3</a> mingfx::Vector3::Lerp </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </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_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>b</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">float </td> - <td class="paramname"><em>alpha</em> </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 vectors. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b', other values blend between the two. </p> - -</div> -</div> -<a id="a8dafc21c64a4964bac27519972d909b6"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a8dafc21c64a4964bac27519972d909b6">◆ </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_vector3.html">Vector3</a> mingfx::Vector3::Lerp </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>b</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">float </td> - <td class="paramname"><em>alpha</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Linear interpolation between this vector and another. Alpha=0.0 returns this vector, and alpha=1.0 returns the other vector, other values blend between the two. </p> - -</div> -</div> -<a id="a9b8e9ecbe10477adec527842f62d0dca"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a9b8e9ecbe10477adec527842f62d0dca">◆ </a></span>Normalize() <span class="overload">[1/2]</span></h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">void mingfx::Vector3::Normalize </td> - <td>(</td> - <td class="paramname"></td><td>)</td> - <td></td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Normalizes the vector by making it unit length. </p> - -</div> -</div> -<a id="aeff0177e2111139469b60733248fad8d"></a> -<h2 class="memtitle"><span class="permalink"><a href="#aeff0177e2111139469b60733248fad8d">◆ </a></span>Normalize() <span class="overload">[2/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_vector3.html">Vector3</a> mingfx::Vector3::Normalize </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v</em></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>Returns a new vector that is the unit version of v. </p> -<p>This is just an alternative syntax for <a class="el" href="classmingfx_1_1_vector3.html#a3caef3c6f24b90730ef70c84ce0e0d71" title="Returns a normalized (i.e., unit length) version of the vector without modifying the original 'this' ...">ToUnit()</a>. Example: ~~~ <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> a(100,150,80); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> b = Vector3::Normalize(a); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> c = a.ToUnit(); b and c are the same. ~~~ </p> - -</div> -</div> -<a id="af71b12760516a9cc4837ba9e1dee28db"></a> -<h2 class="memtitle"><span class="permalink"><a href="#af71b12760516a9cc4837ba9e1dee28db">◆ </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_vector3.html">Vector3</a>& mingfx::Vector3::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,1) - a shortcut for a special vector that is frequently needed </p> - -</div> -</div> -<a id="ab93acb916c310920b9c011159eaaa016"></a> -<h2 class="memtitle"><span class="permalink"><a href="#ab93acb916c310920b9c011159eaaa016">◆ </a></span>operator!=()</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool mingfx::Vector3::operator!= </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v</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="aa5b1c05c285fad7f2709f6f351a63608"></a> -<h2 class="memtitle"><span class="permalink"><a href="#aa5b1c05c285fad7f2709f6f351a63608">◆ </a></span>operator=()</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a>& mingfx::Vector3::operator= </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v</em></td><td>)</td> - <td></td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Vector assignment operator. </p> - -</div> -</div> -<a id="a85486d0a355417fe4b41fa64146c9e98"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a85486d0a355417fe4b41fa64146c9e98">◆ </a></span>operator==()</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool mingfx::Vector3::operator== </td> - <td>(</td> - <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td> - <td class="paramname"><em>v</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="abcdda4627b24af879aba38d4fc0e6f71"></a> -<h2 class="memtitle"><span class="permalink"><a href="#abcdda4627b24af879aba38d4fc0e6f71">◆ </a></span>operator[]() <span class="overload">[1/2]</span></h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">float& mingfx::Vector3::operator[] </td> - <td>(</td> - <td class="paramtype">const int </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 vector. 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_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> a;</div> -<div class="line">a[0] = 5.0; <span class="comment">// set the x-coordinate of the vector</span></div> -</div><!-- fragment --> -</div> -</div> -<a id="aa37b1fc4b1df9f72726d981c08cd0d1b"></a> -<h2 class="memtitle"><span class="permalink"><a href="#aa37b1fc4b1df9f72726d981c08cd0d1b">◆ </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::Vector3::operator[] </td> - <td>(</td> - <td class="paramtype">const int </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 vector. </p> - -</div> -</div> -<a id="a3caef3c6f24b90730ef70c84ce0e0d71"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a3caef3c6f24b90730ef70c84ce0e0d71">◆ </a></span>ToUnit()</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> mingfx::Vector3::ToUnit </td> - <td>(</td> - <td class="paramname"></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Returns a normalized (i.e., unit length) version of the vector without modifying the original 'this' vector. </p> - -</div> -</div> -<a id="ae8d822fdea67f63580b4e1f78f5b8922"></a> -<h2 class="memtitle"><span class="permalink"><a href="#ae8d822fdea67f63580b4e1f78f5b8922">◆ </a></span>UnitX()</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_vector3.html">Vector3</a>& mingfx::Vector3::UnitX </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,0,0) - a shortcut for a special vector that is frequently needed </p> - -</div> -</div> -<a id="a8d31e433d1ac04aaceea1b1dcd1643df"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a8d31e433d1ac04aaceea1b1dcd1643df">◆ </a></span>UnitY()</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_vector3.html">Vector3</a>& mingfx::Vector3::UnitY </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,1,0) - a shortcut for a special vector that is frequently needed </p> - -</div> -</div> -<a id="a4b696b0d1143d6e30a34a2f889d2ca61"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a4b696b0d1143d6e30a34a2f889d2ca61">◆ </a></span>UnitZ()</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_vector3.html">Vector3</a>& mingfx::Vector3::UnitZ </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,1) - a shortcut for a special vector that is frequently needed </p> - -</div> -</div> -<a id="aa7ddfd662e866c019a772ba66eae7331"></a> -<h2 class="memtitle"><span class="permalink"><a href="#aa7ddfd662e866c019a772ba66eae7331">◆ </a></span>value_ptr()</h2> - -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">const float* mingfx::Vector3::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="a2556298f536ba115019982222ce6e0c5"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a2556298f536ba115019982222ce6e0c5">◆ </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::Vector3::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 vectors is 0.0. </p> - -<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00115">115</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p> - -</div> -</div> -<a id="ac380342bfa614c9a3babe1efd14d2cf4"></a> -<h2 class="memtitle"><span class="permalink"><a href="#ac380342bfa614c9a3babe1efd14d2cf4">◆ </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::Vector3::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_vector[0]. Use the my_vector[0] = 1.0; form if you need to set the value. </p> - -<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00104">104</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p> - -</div> -</div> -<a id="aeb74fbc0a970b40abb0db8f8e490ee17"></a> -<h2 class="memtitle"><span class="permalink"><a href="#aeb74fbc0a970b40abb0db8f8e490ee17">◆ </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::Vector3::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_vector[1]. Use the my_vector[1] = 1.0; form if you need to set the value. </p> - -<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00108">108</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p> - -</div> -</div> -<a id="a78d1dba881575517f0427d55cc418df6"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a78d1dba881575517f0427d55cc418df6">◆ </a></span>z()</h2> - -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">float mingfx::Vector3::z </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 z coordinate. Can also use my_vector[2]. Use the my_vector[2] = 1.0; form if you need to set the value. </p> - -<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00112">112</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p> - -</div> -</div> -<a id="a52bf8582baa71e7d6f80c412687d9714"></a> -<h2 class="memtitle"><span class="permalink"><a href="#a52bf8582baa71e7d6f80c412687d9714">◆ </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_vector3.html">Vector3</a>& mingfx::Vector3::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,0) - a shortcut for a special vector 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="vector3_8h_source.html">vector3.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  <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: mingfx::Vector3 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
+  <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="namespacemingfx.html">mingfx</a></li><li class="navelem"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="summary">
+<a href="#pub-methods">Public Member Functions</a> |
+<a href="#pub-static-methods">Static Public Member Functions</a> |
+<a href="classmingfx_1_1_vector3-members.html">List of all members</a> </div>
+ <div class="headertitle">
+<div class="title">mingfx::Vector3 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 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graphics operations. </p>
+<p>Vector3s can be transformed by a <a class="el" href="classmingfx_1_1_matrix4.html" title="A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...">Matrix4</a>, and a <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> can be created by subtracting two Point3s. Example: </p><div class="fragment"><div class="line"><span class="comment">// subtracting two points creates a vector</span></div>
+<div class="line">Point3 a(0,0,0);</div>
+<div class="line">Point3 b(2,0,0);</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> c = b - a;</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// vectors can be transformed by Matrix4s</span></div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> dir = c.ToUnit();</div>
+<div class="line">Matrix4 M = Matrix4::RotateX(<a class="code" href="classmingfx_1_1_gfx_math.html#a39a2b5973249fb3aefc210b18b0fdff3">GfxMath::ToDegrees</a>(30.0));</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> dir_transformed = M * dir;</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// vectors can be added and subtracted</span></div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> d(1,0,0);</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> e = c + d;</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// and we can do the usual dot products and cross products too</span></div>
+<div class="line"><span class="keywordtype">float</span> f = d.Dot(e);</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> g = b.Cross(d);</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// you can access the individual components of the vector in two ways:</span></div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> v(1,2,3);</div>
+<div class="line"><span class="keywordtype">float</span> option1 = v.x();</div>
+<div class="line"><span class="keywordtype">float</span> option2 = v[0];</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// to set an individual component of the vector use the [] operator:</span></div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a>;</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a>[0] = 0.4;</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a>[1] = 1.2;</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a>[2] = 3.1;</div>
+<div class="line"> </div>
+<div class="line"><span class="comment">// you can print the vector by sending it to stdout:</span></div>
+<div class="line">std::cout << v << std::endl;</div>
+<div class="ttc" id="aclassmingfx_1_1_gfx_math_html_a39a2b5973249fb3aefc210b18b0fdff3"><div class="ttname"><a href="classmingfx_1_1_gfx_math.html#a39a2b5973249fb3aefc210b18b0fdff3">mingfx::GfxMath::ToDegrees</a></div><div class="ttdeci">static float ToDegrees(float radians)</div></div>
+<div class="ttc" id="aclassmingfx_1_1_vector3_html_a2556298f536ba115019982222ce6e0c5"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">mingfx::Vector3::w</a></div><div class="ttdeci">float w() const</div><div class="ttdoc">In homogeneous coordinates, the w coordinate for all vectors is 0.0.</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00115">vector3.h:115</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_vector3_html_a7f57af8bbecbc793fa17def4521de4dd"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">mingfx::Vector3::Vector3</a></div><div class="ttdeci">Vector3()</div><div class="ttdoc">Default constructor to create zero vector.</div></div>
+</div><!-- fragment -->
+<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00062">62</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p>
+</div>
+<p><code>#include <<a class="el" href="vector3_8h_source.html">vector3.h</a>></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:a7f57af8bbecbc793fa17def4521de4dd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> ()</td></tr>
+<tr class="memdesc:a7f57af8bbecbc793fa17def4521de4dd"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor to create zero vector. <a href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">More...</a><br /></td></tr>
+<tr class="separator:a7f57af8bbecbc793fa17def4521de4dd"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a256018f34e230d542027d07d14fd6e65"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a256018f34e230d542027d07d14fd6e65">Vector3</a> (float <a class="el" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a>, float <a class="el" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a>, float <a class="el" href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">z</a>)</td></tr>
+<tr class="memdesc:a256018f34e230d542027d07d14fd6e65"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a vector (x,y,z,0), where the 0 comes from the use of homogeneous coordinates in computer graphics. <a href="classmingfx_1_1_vector3.html#a256018f34e230d542027d07d14fd6e65">More...</a><br /></td></tr>
+<tr class="separator:a256018f34e230d542027d07d14fd6e65"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a95b274c7a5ff118af20bc71682c6b1f1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a95b274c7a5ff118af20bc71682c6b1f1">Vector3</a> (float *v)</td></tr>
+<tr class="memdesc:a95b274c7a5ff118af20bc71682c6b1f1"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a vector given a pointer to x,y,z data. <a href="classmingfx_1_1_vector3.html#a95b274c7a5ff118af20bc71682c6b1f1">More...</a><br /></td></tr>
+<tr class="separator:a95b274c7a5ff118af20bc71682c6b1f1"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:af6100965af7770f833dbf0c9f30f4fdd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#af6100965af7770f833dbf0c9f30f4fdd">Vector3</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v)</td></tr>
+<tr class="memdesc:af6100965af7770f833dbf0c9f30f4fdd"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor for vector. <a href="classmingfx_1_1_vector3.html#af6100965af7770f833dbf0c9f30f4fdd">More...</a><br /></td></tr>
+<tr class="separator:af6100965af7770f833dbf0c9f30f4fdd"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a6e0d09d774615bcfde5645c22a645969"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a6e0d09d774615bcfde5645c22a645969">~Vector3</a> ()</td></tr>
+<tr class="memdesc:a6e0d09d774615bcfde5645c22a645969"><td class="mdescLeft"> </td><td class="mdescRight">Vector destructor. <a href="classmingfx_1_1_vector3.html#a6e0d09d774615bcfde5645c22a645969">More...</a><br /></td></tr>
+<tr class="separator:a6e0d09d774615bcfde5645c22a645969"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a85486d0a355417fe4b41fa64146c9e98"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a85486d0a355417fe4b41fa64146c9e98">operator==</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v) const</td></tr>
+<tr class="memdesc:a85486d0a355417fe4b41fa64146c9e98"><td class="mdescLeft"> </td><td class="mdescRight">Check for "equality", taking floating point imprecision into account. <a href="classmingfx_1_1_vector3.html#a85486d0a355417fe4b41fa64146c9e98">More...</a><br /></td></tr>
+<tr class="separator:a85486d0a355417fe4b41fa64146c9e98"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:ab93acb916c310920b9c011159eaaa016"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#ab93acb916c310920b9c011159eaaa016">operator!=</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v) const</td></tr>
+<tr class="memdesc:ab93acb916c310920b9c011159eaaa016"><td class="mdescLeft"> </td><td class="mdescRight">Check for "inequality", taking floating point imprecision into account. <a href="classmingfx_1_1_vector3.html#ab93acb916c310920b9c011159eaaa016">More...</a><br /></td></tr>
+<tr class="separator:ab93acb916c310920b9c011159eaaa016"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:aa5b1c05c285fad7f2709f6f351a63608"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aa5b1c05c285fad7f2709f6f351a63608">operator=</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v)</td></tr>
+<tr class="memdesc:aa5b1c05c285fad7f2709f6f351a63608"><td class="mdescLeft"> </td><td class="mdescRight">Vector assignment operator. <a href="classmingfx_1_1_vector3.html#aa5b1c05c285fad7f2709f6f351a63608">More...</a><br /></td></tr>
+<tr class="separator:aa5b1c05c285fad7f2709f6f351a63608"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:aa37b1fc4b1df9f72726d981c08cd0d1b"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aa37b1fc4b1df9f72726d981c08cd0d1b">operator[]</a> (const int i) const</td></tr>
+<tr class="memdesc:aa37b1fc4b1df9f72726d981c08cd0d1b"><td class="mdescLeft"> </td><td class="mdescRight">Read only access to the ith coordinate of the vector. <a href="classmingfx_1_1_vector3.html#aa37b1fc4b1df9f72726d981c08cd0d1b">More...</a><br /></td></tr>
+<tr class="separator:aa37b1fc4b1df9f72726d981c08cd0d1b"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:abcdda4627b24af879aba38d4fc0e6f71"><td class="memItemLeft" align="right" valign="top">float & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#abcdda4627b24af879aba38d4fc0e6f71">operator[]</a> (const int i)</td></tr>
+<tr class="memdesc:abcdda4627b24af879aba38d4fc0e6f71"><td class="mdescLeft"> </td><td class="mdescRight">Returns a reference to the ith coordinate of the vector. Use this accessor if you wish to set the coordinate rather than just request its value. Example: <a href="classmingfx_1_1_vector3.html#abcdda4627b24af879aba38d4fc0e6f71">More...</a><br /></td></tr>
+<tr class="separator:abcdda4627b24af879aba38d4fc0e6f71"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:ac380342bfa614c9a3babe1efd14d2cf4"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a> () const</td></tr>
+<tr class="memdesc:ac380342bfa614c9a3babe1efd14d2cf4"><td class="mdescLeft"> </td><td class="mdescRight">Read only access to the x coordinate. Can also use my_vector[0]. Use the my_vector[0] = 1.0; form if you need to set the value. <a href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">More...</a><br /></td></tr>
+<tr class="separator:ac380342bfa614c9a3babe1efd14d2cf4"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:aeb74fbc0a970b40abb0db8f8e490ee17"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a> () const</td></tr>
+<tr class="memdesc:aeb74fbc0a970b40abb0db8f8e490ee17"><td class="mdescLeft"> </td><td class="mdescRight">Read only access to the y coordinate. Can also use my_vector[1]. Use the my_vector[1] = 1.0; form if you need to set the value. <a href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">More...</a><br /></td></tr>
+<tr class="separator:aeb74fbc0a970b40abb0db8f8e490ee17"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a78d1dba881575517f0427d55cc418df6"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">z</a> () const</td></tr>
+<tr class="memdesc:a78d1dba881575517f0427d55cc418df6"><td class="mdescLeft"> </td><td class="mdescRight">Read only access to the z coordinate. Can also use my_vector[2]. Use the my_vector[2] = 1.0; form if you need to set the value. <a href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">More...</a><br /></td></tr>
+<tr class="separator:a78d1dba881575517f0427d55cc418df6"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a2556298f536ba115019982222ce6e0c5"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a> () const</td></tr>
+<tr class="memdesc:a2556298f536ba115019982222ce6e0c5"><td class="mdescLeft"> </td><td class="mdescRight">In homogeneous coordinates, the w coordinate for all vectors is 0.0. <a href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">More...</a><br /></td></tr>
+<tr class="separator:a2556298f536ba115019982222ce6e0c5"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a31692a459a8056fe220d115eb5addc88"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a31692a459a8056fe220d115eb5addc88">Dot</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v) const</td></tr>
+<tr class="memdesc:a31692a459a8056fe220d115eb5addc88"><td class="mdescLeft"> </td><td class="mdescRight">Returns "this dot v", for example: <a href="classmingfx_1_1_vector3.html#a31692a459a8056fe220d115eb5addc88">More...</a><br /></td></tr>
+<tr class="separator:a31692a459a8056fe220d115eb5addc88"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a38cd4deed7d342464619b34b0ef95bec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a38cd4deed7d342464619b34b0ef95bec">Cross</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v) const</td></tr>
+<tr class="memdesc:a38cd4deed7d342464619b34b0ef95bec"><td class="mdescLeft"> </td><td class="mdescRight">Returns "this cross v", for example: <a href="classmingfx_1_1_vector3.html#a38cd4deed7d342464619b34b0ef95bec">More...</a><br /></td></tr>
+<tr class="separator:a38cd4deed7d342464619b34b0ef95bec"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a7633dc1625b1f2e6b381438e896b45a3"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a7633dc1625b1f2e6b381438e896b45a3">Length</a> () const</td></tr>
+<tr class="memdesc:a7633dc1625b1f2e6b381438e896b45a3"><td class="mdescLeft"> </td><td class="mdescRight">Returns the length of the vector. <a href="classmingfx_1_1_vector3.html#a7633dc1625b1f2e6b381438e896b45a3">More...</a><br /></td></tr>
+<tr class="separator:a7633dc1625b1f2e6b381438e896b45a3"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a9b8e9ecbe10477adec527842f62d0dca"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a9b8e9ecbe10477adec527842f62d0dca">Normalize</a> ()</td></tr>
+<tr class="memdesc:a9b8e9ecbe10477adec527842f62d0dca"><td class="mdescLeft"> </td><td class="mdescRight">Normalizes the vector by making it unit length. <a href="classmingfx_1_1_vector3.html#a9b8e9ecbe10477adec527842f62d0dca">More...</a><br /></td></tr>
+<tr class="separator:a9b8e9ecbe10477adec527842f62d0dca"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a3caef3c6f24b90730ef70c84ce0e0d71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a3caef3c6f24b90730ef70c84ce0e0d71">ToUnit</a> () const</td></tr>
+<tr class="memdesc:a3caef3c6f24b90730ef70c84ce0e0d71"><td class="mdescLeft"> </td><td class="mdescRight">Returns a normalized (i.e., unit length) version of the vector without modifying the original 'this' vector. <a href="classmingfx_1_1_vector3.html#a3caef3c6f24b90730ef70c84ce0e0d71">More...</a><br /></td></tr>
+<tr class="separator:a3caef3c6f24b90730ef70c84ce0e0d71"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:aa7ddfd662e866c019a772ba66eae7331"><td class="memItemLeft" align="right" valign="top">const float * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aa7ddfd662e866c019a772ba66eae7331">value_ptr</a> () const</td></tr>
+<tr class="memdesc:aa7ddfd662e866c019a772ba66eae7331"><td class="mdescLeft"> </td><td class="mdescRight">Returns a const pointer to the raw data array. <a href="classmingfx_1_1_vector3.html#aa7ddfd662e866c019a772ba66eae7331">More...</a><br /></td></tr>
+<tr class="separator:aa7ddfd662e866c019a772ba66eae7331"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a8dafc21c64a4964bac27519972d909b6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a8dafc21c64a4964bac27519972d909b6">Lerp</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &b, float alpha) const</td></tr>
+<tr class="memdesc:a8dafc21c64a4964bac27519972d909b6"><td class="mdescLeft"> </td><td class="mdescRight">Linear interpolation between this vector and another. Alpha=0.0 returns this vector, and alpha=1.0 returns the other vector, other values blend between the two. <a href="classmingfx_1_1_vector3.html#a8dafc21c64a4964bac27519972d909b6">More...</a><br /></td></tr>
+<tr class="separator:a8dafc21c64a4964bac27519972d909b6"><td class="memSeparator" colspan="2"> </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:a52bf8582baa71e7d6f80c412687d9714"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a52bf8582baa71e7d6f80c412687d9714">Zero</a> ()</td></tr>
+<tr class="memdesc:a52bf8582baa71e7d6f80c412687d9714"><td class="mdescLeft"> </td><td class="mdescRight">(0,0,0) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#a52bf8582baa71e7d6f80c412687d9714">More...</a><br /></td></tr>
+<tr class="separator:a52bf8582baa71e7d6f80c412687d9714"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:af71b12760516a9cc4837ba9e1dee28db"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#af71b12760516a9cc4837ba9e1dee28db">One</a> ()</td></tr>
+<tr class="memdesc:af71b12760516a9cc4837ba9e1dee28db"><td class="mdescLeft"> </td><td class="mdescRight">(1,1,1) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#af71b12760516a9cc4837ba9e1dee28db">More...</a><br /></td></tr>
+<tr class="separator:af71b12760516a9cc4837ba9e1dee28db"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:ae8d822fdea67f63580b4e1f78f5b8922"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#ae8d822fdea67f63580b4e1f78f5b8922">UnitX</a> ()</td></tr>
+<tr class="memdesc:ae8d822fdea67f63580b4e1f78f5b8922"><td class="mdescLeft"> </td><td class="mdescRight">(1,0,0) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#ae8d822fdea67f63580b4e1f78f5b8922">More...</a><br /></td></tr>
+<tr class="separator:ae8d822fdea67f63580b4e1f78f5b8922"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a8d31e433d1ac04aaceea1b1dcd1643df"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a8d31e433d1ac04aaceea1b1dcd1643df">UnitY</a> ()</td></tr>
+<tr class="memdesc:a8d31e433d1ac04aaceea1b1dcd1643df"><td class="mdescLeft"> </td><td class="mdescRight">(0,1,0) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#a8d31e433d1ac04aaceea1b1dcd1643df">More...</a><br /></td></tr>
+<tr class="separator:a8d31e433d1ac04aaceea1b1dcd1643df"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a4b696b0d1143d6e30a34a2f889d2ca61"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a4b696b0d1143d6e30a34a2f889d2ca61">UnitZ</a> ()</td></tr>
+<tr class="memdesc:a4b696b0d1143d6e30a34a2f889d2ca61"><td class="mdescLeft"> </td><td class="mdescRight">(0,0,1) - a shortcut for a special vector that is frequently needed <a href="classmingfx_1_1_vector3.html#a4b696b0d1143d6e30a34a2f889d2ca61">More...</a><br /></td></tr>
+<tr class="separator:a4b696b0d1143d6e30a34a2f889d2ca61"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:aeff0177e2111139469b60733248fad8d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#aeff0177e2111139469b60733248fad8d">Normalize</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v)</td></tr>
+<tr class="memdesc:aeff0177e2111139469b60733248fad8d"><td class="mdescLeft"> </td><td class="mdescRight">Returns a new vector that is the unit version of v. <a href="classmingfx_1_1_vector3.html#aeff0177e2111139469b60733248fad8d">More...</a><br /></td></tr>
+<tr class="separator:aeff0177e2111139469b60733248fad8d"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a45d7d211135edd97ca21b047439db485"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a45d7d211135edd97ca21b047439db485">Cross</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v1, const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v2)</td></tr>
+<tr class="memdesc:a45d7d211135edd97ca21b047439db485"><td class="mdescLeft"> </td><td class="mdescRight">Returns v1 cross v2. <a href="classmingfx_1_1_vector3.html#a45d7d211135edd97ca21b047439db485">More...</a><br /></td></tr>
+<tr class="separator:a45d7d211135edd97ca21b047439db485"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a235fb20d4075960d2ce6198dc95ac507"><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a235fb20d4075960d2ce6198dc95ac507">Dot</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v1, const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &v2)</td></tr>
+<tr class="memdesc:a235fb20d4075960d2ce6198dc95ac507"><td class="mdescLeft"> </td><td class="mdescRight">Returns v1 dot v2. <a href="classmingfx_1_1_vector3.html#a235fb20d4075960d2ce6198dc95ac507">More...</a><br /></td></tr>
+<tr class="separator:a235fb20d4075960d2ce6198dc95ac507"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a489b042bedf8fa329ac05fe905ca1c6f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector3.html#a489b042bedf8fa329ac05fe905ca1c6f">Lerp</a> (const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &a, const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> &b, float alpha)</td></tr>
+<tr class="memdesc:a489b042bedf8fa329ac05fe905ca1c6f"><td class="mdescLeft"> </td><td class="mdescRight">Linear interpolation between two vectors. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b', other values blend between the two. <a href="classmingfx_1_1_vector3.html#a489b042bedf8fa329ac05fe905ca1c6f">More...</a><br /></td></tr>
+<tr class="separator:a489b042bedf8fa329ac05fe905ca1c6f"><td class="memSeparator" colspan="2"> </td></tr>
+</table>
+<h2 class="groupheader">Constructor & Destructor Documentation</h2>
+<a id="a7f57af8bbecbc793fa17def4521de4dd"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a7f57af8bbecbc793fa17def4521de4dd">◆ </a></span>Vector3() <span class="overload">[1/4]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">mingfx::Vector3::Vector3 </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Default constructor to create zero vector. </p>
+
+</div>
+</div>
+<a id="a256018f34e230d542027d07d14fd6e65"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a256018f34e230d542027d07d14fd6e65">◆ </a></span>Vector3() <span class="overload">[2/4]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">mingfx::Vector3::Vector3 </td>
+ <td>(</td>
+ <td class="paramtype">float </td>
+ <td class="paramname"><em>x</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">float </td>
+ <td class="paramname"><em>y</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">float </td>
+ <td class="paramname"><em>z</em> </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Constructs a vector (x,y,z,0), where the 0 comes from the use of homogeneous coordinates in computer graphics. </p>
+
+</div>
+</div>
+<a id="a95b274c7a5ff118af20bc71682c6b1f1"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a95b274c7a5ff118af20bc71682c6b1f1">◆ </a></span>Vector3() <span class="overload">[3/4]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">mingfx::Vector3::Vector3 </td>
+ <td>(</td>
+ <td class="paramtype">float * </td>
+ <td class="paramname"><em>v</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Constructs a vector given a pointer to x,y,z data. </p>
+
+</div>
+</div>
+<a id="af6100965af7770f833dbf0c9f30f4fdd"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#af6100965af7770f833dbf0c9f30f4fdd">◆ </a></span>Vector3() <span class="overload">[4/4]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">mingfx::Vector3::Vector3 </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Copy constructor for vector. </p>
+
+</div>
+</div>
+<a id="a6e0d09d774615bcfde5645c22a645969"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a6e0d09d774615bcfde5645c22a645969">◆ </a></span>~Vector3()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">virtual mingfx::Vector3::~Vector3 </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>Vector destructor. </p>
+
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
+<a id="a38cd4deed7d342464619b34b0ef95bec"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a38cd4deed7d342464619b34b0ef95bec">◆ </a></span>Cross() <span class="overload">[1/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> mingfx::Vector3::Cross </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v</em></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Returns "this cross v", for example: </p>
+<div class="fragment"><div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a>(1,0,0);</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a>(0,1,0);</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">z</a> = <a class="code" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a>.Cross(<a class="code" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a>);</div>
+<div class="ttc" id="aclassmingfx_1_1_vector3_html_a78d1dba881575517f0427d55cc418df6"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">mingfx::Vector3::z</a></div><div class="ttdeci">float z() const</div><div class="ttdoc">Read only access to the z coordinate. Can also use my_vector[2]. Use the my_vector[2] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00112">vector3.h:112</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_vector3_html_ac380342bfa614c9a3babe1efd14d2cf4"><div class="ttname"><a href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">mingfx::Vector3::x</a></div><div class="ttdeci">float x() const</div><div class="ttdoc">Read only access to the x coordinate. Can also use my_vector[0]. Use the my_vector[0] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00104">vector3.h:104</a></div></div>
+<div class="ttc" id="aclassmingfx_1_1_vector3_html_aeb74fbc0a970b40abb0db8f8e490ee17"><div class="ttname"><a href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">mingfx::Vector3::y</a></div><div class="ttdeci">float y() const</div><div class="ttdoc">Read only access to the y coordinate. Can also use my_vector[1]. Use the my_vector[1] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00108">vector3.h:108</a></div></div>
+</div><!-- fragment -->
+</div>
+</div>
+<a id="a45d7d211135edd97ca21b047439db485"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a45d7d211135edd97ca21b047439db485">◆ </a></span>Cross() <span class="overload">[2/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_vector3.html">Vector3</a> mingfx::Vector3::Cross </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v1</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v2</em> </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>Returns v1 cross v2. </p>
+<p>This is just an alternative syntax for <a class="el" href="classmingfx_1_1_vector3.html#a38cd4deed7d342464619b34b0ef95bec" title="Returns "this cross v", for example:">Cross()</a>. Example: ~~~ <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> x(1,0,0); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> y(0,1,0); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> z1 = Vector3::Cross(x,y); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> z2 = x.Cross(y); z1 and z2 are the same. ~~~ </p>
+
+</div>
+</div>
+<a id="a31692a459a8056fe220d115eb5addc88"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a31692a459a8056fe220d115eb5addc88">◆ </a></span>Dot() <span class="overload">[1/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">float mingfx::Vector3::Dot </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v</em></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Returns "this dot v", for example: </p>
+<div class="fragment"><div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> a(1,0,0);</div>
+<div class="line"><a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> b(0.5,0,0);</div>
+<div class="line"><span class="keywordtype">float</span> c = a.Dot(b);</div>
+</div><!-- fragment -->
+</div>
+</div>
+<a id="a235fb20d4075960d2ce6198dc95ac507"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a235fb20d4075960d2ce6198dc95ac507">◆ </a></span>Dot() <span class="overload">[2/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 float mingfx::Vector3::Dot </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v1</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v2</em> </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>Returns v1 dot v2. </p>
+<p>This is just an alternative syntax for <a class="el" href="classmingfx_1_1_vector3.html#a31692a459a8056fe220d115eb5addc88" title="Returns "this dot v", for example:">Dot()</a>. Example: ~~~ <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> a(1,0,0); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> b(0.5,0,0); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> c1 = a.Dot(b); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> c2 = Vector3::Dot(a,b); c1 and c2 are the same. ~~~ </p>
+
+</div>
+</div>
+<a id="a7633dc1625b1f2e6b381438e896b45a3"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a7633dc1625b1f2e6b381438e896b45a3">◆ </a></span>Length()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">float mingfx::Vector3::Length </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Returns the length of the vector. </p>
+
+</div>
+</div>
+<a id="a489b042bedf8fa329ac05fe905ca1c6f"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a489b042bedf8fa329ac05fe905ca1c6f">◆ </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_vector3.html">Vector3</a> mingfx::Vector3::Lerp </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </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_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>b</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">float </td>
+ <td class="paramname"><em>alpha</em> </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 vectors. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b', other values blend between the two. </p>
+
+</div>
+</div>
+<a id="a8dafc21c64a4964bac27519972d909b6"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a8dafc21c64a4964bac27519972d909b6">◆ </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_vector3.html">Vector3</a> mingfx::Vector3::Lerp </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>b</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">float </td>
+ <td class="paramname"><em>alpha</em> </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Linear interpolation between this vector and another. Alpha=0.0 returns this vector, and alpha=1.0 returns the other vector, other values blend between the two. </p>
+
+</div>
+</div>
+<a id="a9b8e9ecbe10477adec527842f62d0dca"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a9b8e9ecbe10477adec527842f62d0dca">◆ </a></span>Normalize() <span class="overload">[1/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void mingfx::Vector3::Normalize </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Normalizes the vector by making it unit length. </p>
+
+</div>
+</div>
+<a id="aeff0177e2111139469b60733248fad8d"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#aeff0177e2111139469b60733248fad8d">◆ </a></span>Normalize() <span class="overload">[2/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_vector3.html">Vector3</a> mingfx::Vector3::Normalize </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v</em></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>Returns a new vector that is the unit version of v. </p>
+<p>This is just an alternative syntax for <a class="el" href="classmingfx_1_1_vector3.html#a3caef3c6f24b90730ef70c84ce0e0d71" title="Returns a normalized (i.e., unit length) version of the vector without modifying the original 'this' ...">ToUnit()</a>. Example: ~~~ <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> a(100,150,80); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> b = Vector3::Normalize(a); <a class="el" href="classmingfx_1_1_vector3.html" title="A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...">Vector3</a> c = a.ToUnit(); b and c are the same. ~~~ </p>
+
+</div>
+</div>
+<a id="af71b12760516a9cc4837ba9e1dee28db"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#af71b12760516a9cc4837ba9e1dee28db">◆ </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_vector3.html">Vector3</a>& mingfx::Vector3::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,1) - a shortcut for a special vector that is frequently needed </p>
+
+</div>
+</div>
+<a id="ab93acb916c310920b9c011159eaaa016"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ab93acb916c310920b9c011159eaaa016">◆ </a></span>operator!=()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool mingfx::Vector3::operator!= </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v</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="aa5b1c05c285fad7f2709f6f351a63608"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#aa5b1c05c285fad7f2709f6f351a63608">◆ </a></span>operator=()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a>& mingfx::Vector3::operator= </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Vector assignment operator. </p>
+
+</div>
+</div>
+<a id="a85486d0a355417fe4b41fa64146c9e98"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a85486d0a355417fe4b41fa64146c9e98">◆ </a></span>operator==()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool mingfx::Vector3::operator== </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> & </td>
+ <td class="paramname"><em>v</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="abcdda4627b24af879aba38d4fc0e6f71"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#abcdda4627b24af879aba38d4fc0e6f71">◆ </a></span>operator[]() <span class="overload">[1/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">float& mingfx::Vector3::operator[] </td>
+ <td>(</td>
+ <td class="paramtype">const int </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 vector. 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_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a> a;</div>
+<div class="line">a[0] = 5.0; <span class="comment">// set the x-coordinate of the vector</span></div>
+</div><!-- fragment -->
+</div>
+</div>
+<a id="aa37b1fc4b1df9f72726d981c08cd0d1b"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#aa37b1fc4b1df9f72726d981c08cd0d1b">◆ </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::Vector3::operator[] </td>
+ <td>(</td>
+ <td class="paramtype">const int </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 vector. </p>
+
+</div>
+</div>
+<a id="a3caef3c6f24b90730ef70c84ce0e0d71"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a3caef3c6f24b90730ef70c84ce0e0d71">◆ </a></span>ToUnit()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname"><a class="el" href="classmingfx_1_1_vector3.html">Vector3</a> mingfx::Vector3::ToUnit </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td> const</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Returns a normalized (i.e., unit length) version of the vector without modifying the original 'this' vector. </p>
+
+</div>
+</div>
+<a id="ae8d822fdea67f63580b4e1f78f5b8922"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ae8d822fdea67f63580b4e1f78f5b8922">◆ </a></span>UnitX()</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_vector3.html">Vector3</a>& mingfx::Vector3::UnitX </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,0,0) - a shortcut for a special vector that is frequently needed </p>
+
+</div>
+</div>
+<a id="a8d31e433d1ac04aaceea1b1dcd1643df"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a8d31e433d1ac04aaceea1b1dcd1643df">◆ </a></span>UnitY()</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_vector3.html">Vector3</a>& mingfx::Vector3::UnitY </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,1,0) - a shortcut for a special vector that is frequently needed </p>
+
+</div>
+</div>
+<a id="a4b696b0d1143d6e30a34a2f889d2ca61"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a4b696b0d1143d6e30a34a2f889d2ca61">◆ </a></span>UnitZ()</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_vector3.html">Vector3</a>& mingfx::Vector3::UnitZ </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,1) - a shortcut for a special vector that is frequently needed </p>
+
+</div>
+</div>
+<a id="aa7ddfd662e866c019a772ba66eae7331"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#aa7ddfd662e866c019a772ba66eae7331">◆ </a></span>value_ptr()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">const float* mingfx::Vector3::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="a2556298f536ba115019982222ce6e0c5"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a2556298f536ba115019982222ce6e0c5">◆ </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::Vector3::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 vectors is 0.0. </p>
+
+<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00115">115</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p>
+
+</div>
+</div>
+<a id="ac380342bfa614c9a3babe1efd14d2cf4"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ac380342bfa614c9a3babe1efd14d2cf4">◆ </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::Vector3::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_vector[0]. Use the my_vector[0] = 1.0; form if you need to set the value. </p>
+
+<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00104">104</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p>
+
+</div>
+</div>
+<a id="aeb74fbc0a970b40abb0db8f8e490ee17"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#aeb74fbc0a970b40abb0db8f8e490ee17">◆ </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::Vector3::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_vector[1]. Use the my_vector[1] = 1.0; form if you need to set the value. </p>
+
+<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00108">108</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p>
+
+</div>
+</div>
+<a id="a78d1dba881575517f0427d55cc418df6"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a78d1dba881575517f0427d55cc418df6">◆ </a></span>z()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">float mingfx::Vector3::z </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 z coordinate. Can also use my_vector[2]. Use the my_vector[2] = 1.0; form if you need to set the value. </p>
+
+<p class="definition">Definition at line <a class="el" href="vector3_8h_source.html#l00112">112</a> of file <a class="el" href="vector3_8h_source.html">vector3.h</a>.</p>
+
+</div>
+</div>
+<a id="a52bf8582baa71e7d6f80c412687d9714"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a52bf8582baa71e7d6f80c412687d9714">◆ </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_vector3.html">Vector3</a>& mingfx::Vector3::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,0) - a shortcut for a special vector 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="vector3_8h_source.html">vector3.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  <a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.9.1
+</small></address>
+</body>
+</html>
|