aboutsummaryrefslogtreecommitdiffstats
path: root/dev/MinGfx/docs/html/vector2_8h.html
blob: a034624ab2e218d915e9f267222845d99c86c58d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<title>MinGfx Toolkit: src/vector2.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">MinGfx Toolkit
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A minimal library for writing cross-platform (Windows, OSX, linux) graphics programs.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">vector2.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &quot;<a class="el" href="point2_8h_source.html">point2.h</a>&quot;</code><br />
</div>
<p><a href="vector2_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_vector2.html">mingfx::Vector2</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A 2D Vector with floating point coordinates, used for storing 2D translations, mouse movements, and screen-space vectors.  <a href="classmingfx_1_1_vector2.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacemingfx"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html">mingfx</a></td></tr>
<tr class="memdesc:namespacemingfx"><td class="mdescLeft">&#160;</td><td class="mdescRight">Namespace for the MinGfx Toolkit. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a79ffb6c38c6c0b68ce1fdb7ae76ea6bd"><td class="memItemLeft" align="right" valign="top">Vector2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#a79ffb6c38c6c0b68ce1fdb7ae76ea6bd">mingfx::operator/</a> (const Vector2 &amp;v, const float s)</td></tr>
<tr class="memdesc:a79ffb6c38c6c0b68ce1fdb7ae76ea6bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide the vector by the scalar s.  <a href="namespacemingfx.html#a79ffb6c38c6c0b68ce1fdb7ae76ea6bd">More...</a><br /></td></tr>
<tr class="separator:a79ffb6c38c6c0b68ce1fdb7ae76ea6bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bc25e621d21323fdd96f2c4a4141432"><td class="memItemLeft" align="right" valign="top">Vector2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#a8bc25e621d21323fdd96f2c4a4141432">mingfx::operator*</a> (const float s, const Vector2 &amp;v)</td></tr>
<tr class="memdesc:a8bc25e621d21323fdd96f2c4a4141432"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiply the vector by the scalar s.  <a href="namespacemingfx.html#a8bc25e621d21323fdd96f2c4a4141432">More...</a><br /></td></tr>
<tr class="separator:a8bc25e621d21323fdd96f2c4a4141432"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8358de6421374fb037e8c51e8f2d5878"><td class="memItemLeft" align="right" valign="top">Vector2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#a8358de6421374fb037e8c51e8f2d5878">mingfx::operator*</a> (const Vector2 &amp;v, const float s)</td></tr>
<tr class="memdesc:a8358de6421374fb037e8c51e8f2d5878"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiply the vector by the scalar s.  <a href="namespacemingfx.html#a8358de6421374fb037e8c51e8f2d5878">More...</a><br /></td></tr>
<tr class="separator:a8358de6421374fb037e8c51e8f2d5878"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5daeaa383c40eed6f41b2c1b7930499f"><td class="memItemLeft" align="right" valign="top">Vector2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#a5daeaa383c40eed6f41b2c1b7930499f">mingfx::operator-</a> (const Vector2 &amp;v)</td></tr>
<tr class="memdesc:a5daeaa383c40eed6f41b2c1b7930499f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Negate the vector.  <a href="namespacemingfx.html#a5daeaa383c40eed6f41b2c1b7930499f">More...</a><br /></td></tr>
<tr class="separator:a5daeaa383c40eed6f41b2c1b7930499f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac71c01d7c300671cb343a24b68a875bf"><td class="memItemLeft" align="right" valign="top">Point2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#ac71c01d7c300671cb343a24b68a875bf">mingfx::operator+</a> (const Vector2 &amp;v, const Point2 &amp;p)</td></tr>
<tr class="memdesc:ac71c01d7c300671cb343a24b68a875bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a vector and a point, returns a point.  <a href="namespacemingfx.html#ac71c01d7c300671cb343a24b68a875bf">More...</a><br /></td></tr>
<tr class="separator:ac71c01d7c300671cb343a24b68a875bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2083f9992ba509a275db11522f16a2e"><td class="memItemLeft" align="right" valign="top">Point2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#ab2083f9992ba509a275db11522f16a2e">mingfx::operator+</a> (const Point2 &amp;p, const Vector2 &amp;v)</td></tr>
<tr class="memdesc:ab2083f9992ba509a275db11522f16a2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a point and a vector, returns a point.  <a href="namespacemingfx.html#ab2083f9992ba509a275db11522f16a2e">More...</a><br /></td></tr>
<tr class="separator:ab2083f9992ba509a275db11522f16a2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdffada748181cc17ec93784f858ff9f"><td class="memItemLeft" align="right" valign="top">Vector2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#acdffada748181cc17ec93784f858ff9f">mingfx::operator+</a> (const Vector2 &amp;v1, const Vector2 &amp;v2)</td></tr>
<tr class="memdesc:acdffada748181cc17ec93784f858ff9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a vector and a vector, returns a vector.  <a href="namespacemingfx.html#acdffada748181cc17ec93784f858ff9f">More...</a><br /></td></tr>
<tr class="separator:acdffada748181cc17ec93784f858ff9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae81fac825c0f6eca59cc1a1cc06d63f2"><td class="memItemLeft" align="right" valign="top">Point2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#ae81fac825c0f6eca59cc1a1cc06d63f2">mingfx::operator-</a> (const Point2 &amp;p, const Vector2 &amp;v)</td></tr>
<tr class="memdesc:ae81fac825c0f6eca59cc1a1cc06d63f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtracts a vector from a point, returns a point.  <a href="namespacemingfx.html#ae81fac825c0f6eca59cc1a1cc06d63f2">More...</a><br /></td></tr>
<tr class="separator:ae81fac825c0f6eca59cc1a1cc06d63f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a128585c0b87e03beda4a660d4e58789b"><td class="memItemLeft" align="right" valign="top">Vector2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#a128585c0b87e03beda4a660d4e58789b">mingfx::operator-</a> (const Vector2 &amp;v1, const Vector2 &amp;v2)</td></tr>
<tr class="memdesc:a128585c0b87e03beda4a660d4e58789b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtracts v2 from v1, returns a vector.  <a href="namespacemingfx.html#a128585c0b87e03beda4a660d4e58789b">More...</a><br /></td></tr>
<tr class="separator:a128585c0b87e03beda4a660d4e58789b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad370bce0bb5b88beb974aad1d44890e8"><td class="memItemLeft" align="right" valign="top">Vector2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#ad370bce0bb5b88beb974aad1d44890e8">mingfx::operator-</a> (const Point2 &amp;p1, const Point2 &amp;p2)</td></tr>
<tr class="memdesc:ad370bce0bb5b88beb974aad1d44890e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the vector spanning p1 and p2.  <a href="namespacemingfx.html#ad370bce0bb5b88beb974aad1d44890e8">More...</a><br /></td></tr>
<tr class="separator:ad370bce0bb5b88beb974aad1d44890e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbe43aa24ecedf663c65becf2be282c7"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#acbe43aa24ecedf663c65becf2be282c7">mingfx::operator&lt;&lt;</a> (std::ostream &amp;os, const Vector2 &amp;v)</td></tr>
<tr class="separator:acbe43aa24ecedf663c65becf2be282c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3f12496d7a5028b71882373d6fa7203"><td class="memItemLeft" align="right" valign="top">std::istream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemingfx.html#ab3f12496d7a5028b71882373d6fa7203">mingfx::operator&gt;&gt;</a> (std::istream &amp;is, Vector2 &amp;v)</td></tr>
<tr class="separator:ab3f12496d7a5028b71882373d6fa7203"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.9.1-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.9.1
</small></address>
</body>
</html>