source: OGRE/trunk/ogrenew/Docs/api/html/classOgre_1_1Vector2.html @ 692

Revision 692, 90.5 KB checked in by mattausch, 18 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1<html>
2<head>
3<title>Ogre::Vector2 class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4<link type="text/css" rel="stylesheet" href="style.css">
5</head>
6
7<body>
8<!-- Generated by Doxygen 1.3.6 -->
9<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
10<h1>Ogre::Vector2 Class Reference</h1>Standard 2-dimensional vector. 
11<a href="#_details">More...</a>
12<p>
13<code>#include &lt;<a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>&gt;</code>
14<p>
15<a href="classOgre_1_1Vector2-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
16<tr><td></td></tr>
17<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
18<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a0">Vector2</a> ()</td></tr>
19
20<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a1">Vector2</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> fX, const <a class="el" href="namespaceOgre.html#a465">Real</a> fY)</td></tr>
21
22<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a2">Vector2</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> scaler)</td></tr>
23
24<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a3">Vector2</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> afCoordinate[2])</td></tr>
25
26<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a4">Vector2</a> (const int afCoordinate[2])</td></tr>
27
28<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a5">Vector2</a> (<a class="el" href="namespaceOgre.html#a465">Real</a> *const r)</td></tr>
29
30<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a6">Vector2</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector)</td></tr>
31
32<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a7">operator[]</a> (const size_t i) const </td></tr>
33
34<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a465">Real</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a8">operator[]</a> (const size_t i)</td></tr>
35
36<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a9">operator=</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector)</td></tr>
37
38<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assigns the value of the other vector.  <a href="#Ogre_1_1Vector2a9"></a><br><br></td></tr>
39<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a10">operator=</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> fScalar)</td></tr>
40
41<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a11">operator==</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector) const </td></tr>
42
43<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a12">operator!=</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector) const </td></tr>
44
45<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a13">operator+</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector) const </td></tr>
46
47<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a14">operator-</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector) const </td></tr>
48
49<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a15">operator *</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> fScalar) const </td></tr>
50
51<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a16">operator *</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rhs) const </td></tr>
52
53<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a17">operator/</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> fScalar) const </td></tr>
54
55<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a18">operator-</a> () const </td></tr>
56
57<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a19">operator+=</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector)</td></tr>
58
59<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a20">operator+=</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> fScaler)</td></tr>
60
61<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a21">operator-=</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector)</td></tr>
62
63<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a22">operator-=</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> fScaler)</td></tr>
64
65<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a23">operator *=</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> fScalar)</td></tr>
66
67<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a24">operator/=</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> fScalar)</td></tr>
68
69<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a25">length</a> () const </td></tr>
70
71<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the length (magnitude) of the vector.  <a href="#Ogre_1_1Vector2a25"></a><br><br></td></tr>
72<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a26">squaredLength</a> () const </td></tr>
73
74<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the square of the length(magnitude) of the vector.  <a href="#Ogre_1_1Vector2a26"></a><br><br></td></tr>
75<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a27">dotProduct</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;vec) const </td></tr>
76
77<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calculates the dot (scalar) product of this vector with another.  <a href="#Ogre_1_1Vector2a27"></a><br><br></td></tr>
78<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a28">normalise</a> ()</td></tr>
79
80<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Normalises the vector.  <a href="#Ogre_1_1Vector2a28"></a><br><br></td></tr>
81<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a29">midPoint</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;vec) const </td></tr>
82
83<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a vector at a point half way between this and the passed in vector.  <a href="#Ogre_1_1Vector2a29"></a><br><br></td></tr>
84<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a30">operator&lt;</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rhs) const </td></tr>
85
86<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the vector's scalar components are all greater that the ones of the vector it is compared against.  <a href="#Ogre_1_1Vector2a30"></a><br><br></td></tr>
87<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a31">operator&gt;</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rhs) const </td></tr>
88
89<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the vector's scalar components are all smaller that the ones of the vector it is compared against.  <a href="#Ogre_1_1Vector2a31"></a><br><br></td></tr>
90<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a32">makeFloor</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;cmp)</td></tr>
91
92<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets this vector's components to the minimum of its own and the ones of the passed in vector.  <a href="#Ogre_1_1Vector2a32"></a><br><br></td></tr>
93<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a33">makeCeil</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;cmp)</td></tr>
94
95<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets this vector's components to the maximum of its own and the ones of the passed in vector.  <a href="#Ogre_1_1Vector2a33"></a><br><br></td></tr>
96<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a34">perpendicular</a> (void) const </td></tr>
97
98<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a vector perpendicular to this vector (eg an 'up' vector).  <a href="#Ogre_1_1Vector2a34"></a><br><br></td></tr>
99<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a35">crossProduct</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector) const </td></tr>
100
101<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calculates the 2 dimensional cross-product of 2 vectors, which results in a single floating point value which is 2 times the area of the triangle.  <a href="#Ogre_1_1Vector2a35"></a><br><br></td></tr>
102<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a36">randomDeviant</a> (<a class="el" href="namespaceOgre.html#a465">Real</a> angle) const </td></tr>
103
104<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates a new random vector which deviates from this vector by a given angle in a random direction.  <a href="#Ogre_1_1Vector2a36"></a><br><br></td></tr>
105<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a37">isZeroLength</a> (void) const </td></tr>
106
107<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if this vector is zero length.  <a href="#Ogre_1_1Vector2a37"></a><br><br></td></tr>
108<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a38">normalisedCopy</a> (void) const </td></tr>
109
110<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">As normalise, except that this vector is unaffected and the normalised vector is returned as a copy.  <a href="#Ogre_1_1Vector2a38"></a><br><br></td></tr>
111<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a39">reflect</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;normal) const </td></tr>
112
113<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calculates a reflection vector to the plane with the given normal .  <a href="#Ogre_1_1Vector2a39"></a><br><br></td></tr>
114<tr><td colspan=2><br><h2>Static Public Attributes</h2></td></tr>
115<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s0">ZERO</a></td></tr>
116
117<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s1">UNIT_X</a></td></tr>
118
119<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s2">UNIT_Y</a></td></tr>
120
121<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s3">NEGATIVE_UNIT_X</a></td></tr>
122
123<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s4">NEGATIVE_UNIT_Y</a></td></tr>
124
125<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s5">UNIT_SCALE</a></td></tr>
126
127<tr><td colspan=2><br><h2>Friends</h2></td></tr>
128<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2n0">operator *</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> fScalar, const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rkVector)</td></tr>
129
130<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2n1">operator+</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;lhs, const <a class="el" href="namespaceOgre.html#a465">Real</a> rhs)</td></tr>
131
132<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2n2">operator+</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> lhs, const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rhs)</td></tr>
133
134<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2n3">operator-</a> (const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;lhs, const <a class="el" href="namespaceOgre.html#a465">Real</a> rhs)</td></tr>
135
136<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2n4">operator-</a> (const <a class="el" href="namespaceOgre.html#a465">Real</a> lhs, const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;rhs)</td></tr>
137
138<tr><td class="memItemLeft" nowrap align=right valign=top>_OgreExport friend std::ostream &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2n5">operator&lt;&lt;</a> (std::ostream &amp;o, const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;v)</td></tr>
139
140<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Function for writing to a stream.  <a href="#Ogre_1_1Vector2n5"></a><br><br></td></tr>
141</table>
142<hr><a name="_details"></a><h2>Detailed Description</h2>
143Standard 2-dimensional vector.
144<p>
145<dl compact><dt><b>Remarks:</b></dt><dd>A direction in 2D space represented as distances along the 2 orthoganal axes (x, y). Note that positions, directions and scaling factors can be represented by a vector, depending on how you interpret the values. </dd></dl>
146
147<p>
148
149<p>
150Definition at line <a class="el" href="OgreVector2_8h-source.html#l00042">42</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
151<a class="anchor" name="Ogre_1_1Vector2a0" doxytag="Ogre::Vector2::Vector2" ></a><p>
152<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
153  <tr>
154    <td class="mdRow">
155      <table cellpadding="0" cellspacing="0" border="0">
156        <tr>
157          <td class="md" nowrap valign="top"> Ogre::Vector2::Vector2 </td>
158          <td class="md" valign="top">(&nbsp;</td>
159          <td class="mdname1" valign="top" nowrap>          </td>
160          <td class="md" valign="top">&nbsp;)&nbsp;</td>
161          <td class="md" nowrap></td>
162        </tr>
163
164      </table>
165    </td>
166  </tr>
167</table>
168<table cellspacing=5 cellpadding=0 border=0>
169  <tr>
170    <td>
171      &nbsp;
172    </td>
173    <td>
174
175<p>
176
177<p>
178Definition at line <a class="el" href="OgreVector2_8h-source.html#l00053">53</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
179  </tr>
180</table>
181<a class="anchor" name="Ogre_1_1Vector2a1" doxytag="Ogre::Vector2::Vector2" ></a><p>
182<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
183  <tr>
184    <td class="mdRow">
185      <table cellpadding="0" cellspacing="0" border="0">
186        <tr>
187          <td class="md" nowrap valign="top"> Ogre::Vector2::Vector2 </td>
188          <td class="md" valign="top">(&nbsp;</td>
189          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
190          <td class="mdname" nowrap> <em>fX</em>, </td>
191        </tr>
192        <tr>
193          <td class="md" nowrap align="right"></td>
194          <td></td>
195          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
196          <td class="mdname" nowrap> <em>fY</em></td>
197        </tr>
198        <tr>
199          <td></td>
200          <td class="md">)&nbsp;</td>
201          <td class="md" colspan="2"></td>
202        </tr>
203
204      </table>
205    </td>
206  </tr>
207</table>
208<table cellspacing=5 cellpadding=0 border=0>
209  <tr>
210    <td>
211      &nbsp;
212    </td>
213    <td>
214
215<p>
216
217<p>
218Definition at line <a class="el" href="OgreVector2_8h-source.html#l00057">57</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
219<p>
220References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
221  </tr>
222</table>
223<a class="anchor" name="Ogre_1_1Vector2a2" doxytag="Ogre::Vector2::Vector2" ></a><p>
224<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
225  <tr>
226    <td class="mdRow">
227      <table cellpadding="0" cellspacing="0" border="0">
228        <tr>
229          <td class="md" nowrap valign="top"> Ogre::Vector2::Vector2 </td>
230          <td class="md" valign="top">(&nbsp;</td>
231          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
232          <td class="mdname1" valign="top" nowrap> <em>scaler</em>          </td>
233          <td class="md" valign="top">&nbsp;)&nbsp;</td>
234          <td class="md" nowrap><code> [explicit]</code></td>
235        </tr>
236
237      </table>
238    </td>
239  </tr>
240</table>
241<table cellspacing=5 cellpadding=0 border=0>
242  <tr>
243    <td>
244      &nbsp;
245    </td>
246    <td>
247
248<p>
249
250<p>
251Definition at line <a class="el" href="OgreVector2_8h-source.html#l00062">62</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
252<p>
253References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
254  </tr>
255</table>
256<a class="anchor" name="Ogre_1_1Vector2a3" doxytag="Ogre::Vector2::Vector2" ></a><p>
257<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
258  <tr>
259    <td class="mdRow">
260      <table cellpadding="0" cellspacing="0" border="0">
261        <tr>
262          <td class="md" nowrap valign="top"> Ogre::Vector2::Vector2 </td>
263          <td class="md" valign="top">(&nbsp;</td>
264          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
265          <td class="mdname1" valign="top" nowrap> <em>afCoordinate</em>[2]          </td>
266          <td class="md" valign="top">&nbsp;)&nbsp;</td>
267          <td class="md" nowrap><code> [explicit]</code></td>
268        </tr>
269
270      </table>
271    </td>
272  </tr>
273</table>
274<table cellspacing=5 cellpadding=0 border=0>
275  <tr>
276    <td>
277      &nbsp;
278    </td>
279    <td>
280
281<p>
282
283<p>
284Definition at line <a class="el" href="OgreVector2_8h-source.html#l00067">67</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
285<p>
286References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
287  </tr>
288</table>
289<a class="anchor" name="Ogre_1_1Vector2a4" doxytag="Ogre::Vector2::Vector2" ></a><p>
290<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
291  <tr>
292    <td class="mdRow">
293      <table cellpadding="0" cellspacing="0" border="0">
294        <tr>
295          <td class="md" nowrap valign="top"> Ogre::Vector2::Vector2 </td>
296          <td class="md" valign="top">(&nbsp;</td>
297          <td class="md" nowrap valign="top">const int&nbsp;</td>
298          <td class="mdname1" valign="top" nowrap> <em>afCoordinate</em>[2]          </td>
299          <td class="md" valign="top">&nbsp;)&nbsp;</td>
300          <td class="md" nowrap><code> [explicit]</code></td>
301        </tr>
302
303      </table>
304    </td>
305  </tr>
306</table>
307<table cellspacing=5 cellpadding=0 border=0>
308  <tr>
309    <td>
310      &nbsp;
311    </td>
312    <td>
313
314<p>
315
316<p>
317Definition at line <a class="el" href="OgreVector2_8h-source.html#l00073">73</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
318<p>
319References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
320  </tr>
321</table>
322<a class="anchor" name="Ogre_1_1Vector2a5" doxytag="Ogre::Vector2::Vector2" ></a><p>
323<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
324  <tr>
325    <td class="mdRow">
326      <table cellpadding="0" cellspacing="0" border="0">
327        <tr>
328          <td class="md" nowrap valign="top"> Ogre::Vector2::Vector2 </td>
329          <td class="md" valign="top">(&nbsp;</td>
330          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a465">Real</a> *const&nbsp;</td>
331          <td class="mdname1" valign="top" nowrap> <em>r</em>          </td>
332          <td class="md" valign="top">&nbsp;)&nbsp;</td>
333          <td class="md" nowrap><code> [explicit]</code></td>
334        </tr>
335
336      </table>
337    </td>
338  </tr>
339</table>
340<table cellspacing=5 cellpadding=0 border=0>
341  <tr>
342    <td>
343      &nbsp;
344    </td>
345    <td>
346
347<p>
348
349<p>
350Definition at line <a class="el" href="OgreVector2_8h-source.html#l00079">79</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
351<p>
352References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
353  </tr>
354</table>
355<a class="anchor" name="Ogre_1_1Vector2a6" doxytag="Ogre::Vector2::Vector2" ></a><p>
356<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
357  <tr>
358    <td class="mdRow">
359      <table cellpadding="0" cellspacing="0" border="0">
360        <tr>
361          <td class="md" nowrap valign="top"> Ogre::Vector2::Vector2 </td>
362          <td class="md" valign="top">(&nbsp;</td>
363          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
364          <td class="mdname1" valign="top" nowrap> <em>rkVector</em>          </td>
365          <td class="md" valign="top">&nbsp;)&nbsp;</td>
366          <td class="md" nowrap></td>
367        </tr>
368
369      </table>
370    </td>
371  </tr>
372</table>
373<table cellspacing=5 cellpadding=0 border=0>
374  <tr>
375    <td>
376      &nbsp;
377    </td>
378    <td>
379
380<p>
381
382<p>
383Definition at line <a class="el" href="OgreVector2_8h-source.html#l00084">84</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
384  </tr>
385</table>
386<hr><h2>Member Function Documentation</h2>
387<a class="anchor" name="Ogre_1_1Vector2a35" doxytag="Ogre::Vector2::crossProduct" ></a><p>
388<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
389  <tr>
390    <td class="mdRow">
391      <table cellpadding="0" cellspacing="0" border="0">
392        <tr>
393          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> Ogre::Vector2::crossProduct </td>
394          <td class="md" valign="top">(&nbsp;</td>
395          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
396          <td class="mdname1" valign="top" nowrap> <em>rkVector</em>          </td>
397          <td class="md" valign="top">&nbsp;)&nbsp;</td>
398          <td class="md" nowrap> const</td>
399        </tr>
400
401      </table>
402    </td>
403  </tr>
404</table>
405<table cellspacing=5 cellpadding=0 border=0>
406  <tr>
407    <td>
408      &nbsp;
409    </td>
410    <td>
411
412<p>
413Calculates the 2 dimensional cross-product of 2 vectors, which results in a single floating point value which is 2 times the area of the triangle.
414<p>
415
416<p>
417Definition at line <a class="el" href="OgreVector2_8h-source.html#l00425">425</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
418<p>
419References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>, <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
420  </tr>
421</table>
422<a class="anchor" name="Ogre_1_1Vector2a27" doxytag="Ogre::Vector2::dotProduct" ></a><p>
423<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
424  <tr>
425    <td class="mdRow">
426      <table cellpadding="0" cellspacing="0" border="0">
427        <tr>
428          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> Ogre::Vector2::dotProduct </td>
429          <td class="md" valign="top">(&nbsp;</td>
430          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
431          <td class="mdname1" valign="top" nowrap> <em>vec</em>          </td>
432          <td class="md" valign="top">&nbsp;)&nbsp;</td>
433          <td class="md" nowrap> const</td>
434        </tr>
435
436      </table>
437    </td>
438  </tr>
439</table>
440<table cellspacing=5 cellpadding=0 border=0>
441  <tr>
442    <td>
443      &nbsp;
444    </td>
445    <td>
446
447<p>
448Calculates the dot (scalar) product of this vector with another.
449<p>
450<dl compact><dt><b>Remarks:</b></dt><dd>The dot product can be used to calculate the angle between 2 vectors. If both are unit vectors, the dot product is the cosine of the angle; otherwise the dot product must be divided by the product of the lengths of both vectors to get the cosine of the angle. This result can further be used to calculate the distance of a point from a plane. </dd></dl>
451<dl compact><dt><b>Parameters:</b></dt><dd>
452  <table border="0" cellspacing="2" cellpadding="0">
453    <tr><td valign=top><em>vec</em>&nbsp;</td><td>Vector with which to calculate the dot product (together with this one). </td></tr>
454  </table>
455</dl>
456<dl compact><dt><b>Returns:</b></dt><dd>A float representing the dot product value. </dd></dl>
457
458<p>
459Definition at line <a class="el" href="OgreVector2_8h-source.html#l00324">324</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
460<p>
461References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>, <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
462  </tr>
463</table>
464<a class="anchor" name="Ogre_1_1Vector2a37" doxytag="Ogre::Vector2::isZeroLength" ></a><p>
465<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
466  <tr>
467    <td class="mdRow">
468      <table cellpadding="0" cellspacing="0" border="0">
469        <tr>
470          <td class="md" nowrap valign="top"> bool Ogre::Vector2::isZeroLength </td>
471          <td class="md" valign="top">(&nbsp;</td>
472          <td class="md" nowrap valign="top">void&nbsp;</td>
473          <td class="mdname1" valign="top" nowrap>          </td>
474          <td class="md" valign="top">&nbsp;)&nbsp;</td>
475          <td class="md" nowrap> const</td>
476        </tr>
477
478      </table>
479    </td>
480  </tr>
481</table>
482<table cellspacing=5 cellpadding=0 border=0>
483  <tr>
484    <td>
485      &nbsp;
486    </td>
487    <td>
488
489<p>
490Returns true if this vector is zero length.
491<p>
492
493<p>
494Definition at line <a class="el" href="OgreVector2_8h-source.html#l00460">460</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
495<p>
496References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
497  </tr>
498</table>
499<a class="anchor" name="Ogre_1_1Vector2a25" doxytag="Ogre::Vector2::length" ></a><p>
500<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
501  <tr>
502    <td class="mdRow">
503      <table cellpadding="0" cellspacing="0" border="0">
504        <tr>
505          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> Ogre::Vector2::length </td>
506          <td class="md" valign="top">(&nbsp;</td>
507          <td class="mdname1" valign="top" nowrap>          </td>
508          <td class="md" valign="top">&nbsp;)&nbsp;</td>
509          <td class="md" nowrap> const</td>
510        </tr>
511
512      </table>
513    </td>
514  </tr>
515</table>
516<table cellspacing=5 cellpadding=0 border=0>
517  <tr>
518    <td>
519      &nbsp;
520    </td>
521    <td>
522
523<p>
524Returns the length (magnitude) of the vector.
525<p>
526<dl compact><dt><b>Warning:</b></dt><dd>This operation requires a square root and is expensive in terms of CPU operations. If you don't need to know the exact length (e.g. for just comparing lengths) use <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2a26">squaredLength()</a> instead. </dd></dl>
527
528<p>
529Definition at line <a class="el" href="OgreVector2_8h-source.html#l00290">290</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
530<p>
531References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
532  </tr>
533</table>
534<a class="anchor" name="Ogre_1_1Vector2a33" doxytag="Ogre::Vector2::makeCeil" ></a><p>
535<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
536  <tr>
537    <td class="mdRow">
538      <table cellpadding="0" cellspacing="0" border="0">
539        <tr>
540          <td class="md" nowrap valign="top"> void Ogre::Vector2::makeCeil </td>
541          <td class="md" valign="top">(&nbsp;</td>
542          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
543          <td class="mdname1" valign="top" nowrap> <em>cmp</em>          </td>
544          <td class="md" valign="top">&nbsp;)&nbsp;</td>
545          <td class="md" nowrap></td>
546        </tr>
547
548      </table>
549    </td>
550  </tr>
551</table>
552<table cellspacing=5 cellpadding=0 border=0>
553  <tr>
554    <td>
555      &nbsp;
556    </td>
557    <td>
558
559<p>
560Sets this vector's components to the maximum of its own and the ones of the passed in vector.
561<p>
562<dl compact><dt><b>Remarks:</b></dt><dd>'Maximum' in this case means the combination of the highest value of x, y and z from both vectors. Highest is taken just numerically, not magnitude, so 1 &gt; -3. </dd></dl>
563
564<p>
565Definition at line <a class="el" href="OgreVector2_8h-source.html#l00405">405</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
566<p>
567References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
568  </tr>
569</table>
570<a class="anchor" name="Ogre_1_1Vector2a32" doxytag="Ogre::Vector2::makeFloor" ></a><p>
571<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
572  <tr>
573    <td class="mdRow">
574      <table cellpadding="0" cellspacing="0" border="0">
575        <tr>
576          <td class="md" nowrap valign="top"> void Ogre::Vector2::makeFloor </td>
577          <td class="md" valign="top">(&nbsp;</td>
578          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
579          <td class="mdname1" valign="top" nowrap> <em>cmp</em>          </td>
580          <td class="md" valign="top">&nbsp;)&nbsp;</td>
581          <td class="md" nowrap></td>
582        </tr>
583
584      </table>
585    </td>
586  </tr>
587</table>
588<table cellspacing=5 cellpadding=0 border=0>
589  <tr>
590    <td>
591      &nbsp;
592    </td>
593    <td>
594
595<p>
596Sets this vector's components to the minimum of its own and the ones of the passed in vector.
597<p>
598<dl compact><dt><b>Remarks:</b></dt><dd>'Minimum' in this case means the combination of the lowest value of x, y and z from both vectors. Lowest is taken just numerically, not magnitude, so -1 &lt; 0. </dd></dl>
599
600<p>
601Definition at line <a class="el" href="OgreVector2_8h-source.html#l00392">392</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
602<p>
603References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
604  </tr>
605</table>
606<a class="anchor" name="Ogre_1_1Vector2a29" doxytag="Ogre::Vector2::midPoint" ></a><p>
607<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
608  <tr>
609    <td class="mdRow">
610      <table cellpadding="0" cellspacing="0" border="0">
611        <tr>
612          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::midPoint </td>
613          <td class="md" valign="top">(&nbsp;</td>
614          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
615          <td class="mdname1" valign="top" nowrap> <em>vec</em>          </td>
616          <td class="md" valign="top">&nbsp;)&nbsp;</td>
617          <td class="md" nowrap> const</td>
618        </tr>
619
620      </table>
621    </td>
622  </tr>
623</table>
624<table cellspacing=5 cellpadding=0 border=0>
625  <tr>
626    <td>
627      &nbsp;
628    </td>
629    <td>
630
631<p>
632Returns a vector at a point half way between this and the passed in vector.
633<p>
634
635<p>
636Definition at line <a class="el" href="OgreVector2_8h-source.html#l00358">358</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
637<p>
638References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
639  </tr>
640</table>
641<a class="anchor" name="Ogre_1_1Vector2a28" doxytag="Ogre::Vector2::normalise" ></a><p>
642<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
643  <tr>
644    <td class="mdRow">
645      <table cellpadding="0" cellspacing="0" border="0">
646        <tr>
647          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> Ogre::Vector2::normalise </td>
648          <td class="md" valign="top">(&nbsp;</td>
649          <td class="md" nowrap valign="top">void&nbsp;</td>
650          <td class="mdname1" valign="top" nowrap>          </td>
651          <td class="md" valign="top">&nbsp;)&nbsp;</td>
652          <td class="md" nowrap></td>
653        </tr>
654
655      </table>
656    </td>
657  </tr>
658</table>
659<table cellspacing=5 cellpadding=0 border=0>
660  <tr>
661    <td>
662      &nbsp;
663    </td>
664    <td>
665
666<p>
667Normalises the vector.
668<p>
669<dl compact><dt><b>Remarks:</b></dt><dd>This method normalises the vector such that it's length / magnitude is 1. The result is called a unit vector. </dd></dl>
670<dl compact><dt><b>Note:</b></dt><dd>This function will not crash for zero-sized vectors, but there will be no changes made to their components. </dd></dl>
671<dl compact><dt><b>Returns:</b></dt><dd>The previous length of the vector. </dd></dl>
672
673<p>
674Definition at line <a class="el" href="OgreVector2_8h-source.html#l00338">338</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
675<p>
676References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.
677<p>
678Referenced by <a class="el" href="OgreVector2_8h-source.html#l00469">normalisedCopy()</a>.    </td>
679  </tr>
680</table>
681<a class="anchor" name="Ogre_1_1Vector2a38" doxytag="Ogre::Vector2::normalisedCopy" ></a><p>
682<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
683  <tr>
684    <td class="mdRow">
685      <table cellpadding="0" cellspacing="0" border="0">
686        <tr>
687          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::normalisedCopy </td>
688          <td class="md" valign="top">(&nbsp;</td>
689          <td class="md" nowrap valign="top">void&nbsp;</td>
690          <td class="mdname1" valign="top" nowrap>          </td>
691          <td class="md" valign="top">&nbsp;)&nbsp;</td>
692          <td class="md" nowrap> const</td>
693        </tr>
694
695      </table>
696    </td>
697  </tr>
698</table>
699<table cellspacing=5 cellpadding=0 border=0>
700  <tr>
701    <td>
702      &nbsp;
703    </td>
704    <td>
705
706<p>
707As normalise, except that this vector is unaffected and the normalised vector is returned as a copy.
708<p>
709
710<p>
711Definition at line <a class="el" href="OgreVector2_8h-source.html#l00469">469</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
712<p>
713References <a class="el" href="OgreVector2_8h-source.html#l00338">normalise()</a>.    </td>
714  </tr>
715</table>
716<a class="anchor" name="Ogre_1_1Vector2a16" doxytag="Ogre::Vector2::operator *" ></a><p>
717<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
718  <tr>
719    <td class="mdRow">
720      <table cellpadding="0" cellspacing="0" border="0">
721        <tr>
722          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::operator * </td>
723          <td class="md" valign="top">(&nbsp;</td>
724          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
725          <td class="mdname1" valign="top" nowrap> <em>rhs</em>          </td>
726          <td class="md" valign="top">&nbsp;)&nbsp;</td>
727          <td class="md" nowrap> const</td>
728        </tr>
729
730      </table>
731    </td>
732  </tr>
733</table>
734<table cellspacing=5 cellpadding=0 border=0>
735  <tr>
736    <td>
737      &nbsp;
738    </td>
739    <td>
740
741<p>
742
743<p>
744Definition at line <a class="el" href="OgreVector2_8h-source.html#l00164">164</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
745<p>
746References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
747  </tr>
748</table>
749<a class="anchor" name="Ogre_1_1Vector2a15" doxytag="Ogre::Vector2::operator *" ></a><p>
750<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
751  <tr>
752    <td class="mdRow">
753      <table cellpadding="0" cellspacing="0" border="0">
754        <tr>
755          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::operator * </td>
756          <td class="md" valign="top">(&nbsp;</td>
757          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
758          <td class="mdname1" valign="top" nowrap> <em>fScalar</em>          </td>
759          <td class="md" valign="top">&nbsp;)&nbsp;</td>
760          <td class="md" nowrap> const</td>
761        </tr>
762
763      </table>
764    </td>
765  </tr>
766</table>
767<table cellspacing=5 cellpadding=0 border=0>
768  <tr>
769    <td>
770      &nbsp;
771    </td>
772    <td>
773
774<p>
775
776<p>
777Definition at line <a class="el" href="OgreVector2_8h-source.html#l00154">154</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
778<p>
779References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>, <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
780  </tr>
781</table>
782<a class="anchor" name="Ogre_1_1Vector2a23" doxytag="Ogre::Vector2::operator *=" ></a><p>
783<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
784  <tr>
785    <td class="mdRow">
786      <table cellpadding="0" cellspacing="0" border="0">
787        <tr>
788          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&amp; Ogre::Vector2::operator *= </td>
789          <td class="md" valign="top">(&nbsp;</td>
790          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
791          <td class="mdname1" valign="top" nowrap> <em>fScalar</em>          </td>
792          <td class="md" valign="top">&nbsp;)&nbsp;</td>
793          <td class="md" nowrap></td>
794        </tr>
795
796      </table>
797    </td>
798  </tr>
799</table>
800<table cellspacing=5 cellpadding=0 border=0>
801  <tr>
802    <td>
803      &nbsp;
804    </td>
805    <td>
806
807<p>
808
809<p>
810Definition at line <a class="el" href="OgreVector2_8h-source.html#l00263">263</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
811<p>
812References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
813  </tr>
814</table>
815<a class="anchor" name="Ogre_1_1Vector2a12" doxytag="Ogre::Vector2::operator!=" ></a><p>
816<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
817  <tr>
818    <td class="mdRow">
819      <table cellpadding="0" cellspacing="0" border="0">
820        <tr>
821          <td class="md" nowrap valign="top"> bool Ogre::Vector2::operator!= </td>
822          <td class="md" valign="top">(&nbsp;</td>
823          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
824          <td class="mdname1" valign="top" nowrap> <em>rkVector</em>          </td>
825          <td class="md" valign="top">&nbsp;)&nbsp;</td>
826          <td class="md" nowrap> const</td>
827        </tr>
828
829      </table>
830    </td>
831  </tr>
832</table>
833<table cellspacing=5 cellpadding=0 border=0>
834  <tr>
835    <td>
836      &nbsp;
837    </td>
838    <td>
839
840<p>
841
842<p>
843Definition at line <a class="el" href="OgreVector2_8h-source.html#l00128">128</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
844<p>
845References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
846  </tr>
847</table>
848<a class="anchor" name="Ogre_1_1Vector2a13" doxytag="Ogre::Vector2::operator+" ></a><p>
849<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
850  <tr>
851    <td class="mdRow">
852      <table cellpadding="0" cellspacing="0" border="0">
853        <tr>
854          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::operator+ </td>
855          <td class="md" valign="top">(&nbsp;</td>
856          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
857          <td class="mdname1" valign="top" nowrap> <em>rkVector</em>          </td>
858          <td class="md" valign="top">&nbsp;)&nbsp;</td>
859          <td class="md" nowrap> const</td>
860        </tr>
861
862      </table>
863    </td>
864  </tr>
865</table>
866<table cellspacing=5 cellpadding=0 border=0>
867  <tr>
868    <td>
869      &nbsp;
870    </td>
871    <td>
872
873<p>
874
875<p>
876Definition at line <a class="el" href="OgreVector2_8h-source.html#l00134">134</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
877<p>
878References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
879  </tr>
880</table>
881<a class="anchor" name="Ogre_1_1Vector2a20" doxytag="Ogre::Vector2::operator+=" ></a><p>
882<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
883  <tr>
884    <td class="mdRow">
885      <table cellpadding="0" cellspacing="0" border="0">
886        <tr>
887          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&amp; Ogre::Vector2::operator+= </td>
888          <td class="md" valign="top">(&nbsp;</td>
889          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
890          <td class="mdname1" valign="top" nowrap> <em>fScaler</em>          </td>
891          <td class="md" valign="top">&nbsp;)&nbsp;</td>
892          <td class="md" nowrap></td>
893        </tr>
894
895      </table>
896    </td>
897  </tr>
898</table>
899<table cellspacing=5 cellpadding=0 border=0>
900  <tr>
901    <td>
902      &nbsp;
903    </td>
904    <td>
905
906<p>
907
908<p>
909Definition at line <a class="el" href="OgreVector2_8h-source.html#l00239">239</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
910<p>
911References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
912  </tr>
913</table>
914<a class="anchor" name="Ogre_1_1Vector2a19" doxytag="Ogre::Vector2::operator+=" ></a><p>
915<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
916  <tr>
917    <td class="mdRow">
918      <table cellpadding="0" cellspacing="0" border="0">
919        <tr>
920          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&amp; Ogre::Vector2::operator+= </td>
921          <td class="md" valign="top">(&nbsp;</td>
922          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
923          <td class="mdname1" valign="top" nowrap> <em>rkVector</em>          </td>
924          <td class="md" valign="top">&nbsp;)&nbsp;</td>
925          <td class="md" nowrap></td>
926        </tr>
927
928      </table>
929    </td>
930  </tr>
931</table>
932<table cellspacing=5 cellpadding=0 border=0>
933  <tr>
934    <td>
935      &nbsp;
936    </td>
937    <td>
938
939<p>
940
941<p>
942Definition at line <a class="el" href="OgreVector2_8h-source.html#l00231">231</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
943<p>
944References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
945  </tr>
946</table>
947<a class="anchor" name="Ogre_1_1Vector2a18" doxytag="Ogre::Vector2::operator-" ></a><p>
948<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
949  <tr>
950    <td class="mdRow">
951      <table cellpadding="0" cellspacing="0" border="0">
952        <tr>
953          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::operator- </td>
954          <td class="md" valign="top">(&nbsp;</td>
955          <td class="mdname1" valign="top" nowrap>          </td>
956          <td class="md" valign="top">&nbsp;)&nbsp;</td>
957          <td class="md" nowrap> const</td>
958        </tr>
959
960      </table>
961    </td>
962  </tr>
963</table>
964<table cellspacing=5 cellpadding=0 border=0>
965  <tr>
966    <td>
967      &nbsp;
968    </td>
969    <td>
970
971<p>
972
973<p>
974Definition at line <a class="el" href="OgreVector2_8h-source.html#l00187">187</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
975<p>
976References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
977  </tr>
978</table>
979<a class="anchor" name="Ogre_1_1Vector2a14" doxytag="Ogre::Vector2::operator-" ></a><p>
980<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
981  <tr>
982    <td class="mdRow">
983      <table cellpadding="0" cellspacing="0" border="0">
984        <tr>
985          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::operator- </td>
986          <td class="md" valign="top">(&nbsp;</td>
987          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
988          <td class="mdname1" valign="top" nowrap> <em>rkVector</em>          </td>
989          <td class="md" valign="top">&nbsp;)&nbsp;</td>
990          <td class="md" nowrap> const</td>
991        </tr>
992
993      </table>
994    </td>
995  </tr>
996</table>
997<table cellspacing=5 cellpadding=0 border=0>
998  <tr>
999    <td>
1000      &nbsp;
1001    </td>
1002    <td>
1003
1004<p>
1005
1006<p>
1007Definition at line <a class="el" href="OgreVector2_8h-source.html#l00144">144</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1008<p>
1009References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
1010  </tr>
1011</table>
1012<a class="anchor" name="Ogre_1_1Vector2a22" doxytag="Ogre::Vector2::operator-=" ></a><p>
1013<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1014  <tr>
1015    <td class="mdRow">
1016      <table cellpadding="0" cellspacing="0" border="0">
1017        <tr>
1018          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&amp; Ogre::Vector2::operator-= </td>
1019          <td class="md" valign="top">(&nbsp;</td>
1020          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1021          <td class="mdname1" valign="top" nowrap> <em>fScaler</em>          </td>
1022          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1023          <td class="md" nowrap></td>
1024        </tr>
1025
1026      </table>
1027    </td>
1028  </tr>
1029</table>
1030<table cellspacing=5 cellpadding=0 border=0>
1031  <tr>
1032    <td>
1033      &nbsp;
1034    </td>
1035    <td>
1036
1037<p>
1038
1039<p>
1040Definition at line <a class="el" href="OgreVector2_8h-source.html#l00255">255</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1041<p>
1042References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
1043  </tr>
1044</table>
1045<a class="anchor" name="Ogre_1_1Vector2a21" doxytag="Ogre::Vector2::operator-=" ></a><p>
1046<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1047  <tr>
1048    <td class="mdRow">
1049      <table cellpadding="0" cellspacing="0" border="0">
1050        <tr>
1051          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&amp; Ogre::Vector2::operator-= </td>
1052          <td class="md" valign="top">(&nbsp;</td>
1053          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1054          <td class="mdname1" valign="top" nowrap> <em>rkVector</em>          </td>
1055          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1056          <td class="md" nowrap></td>
1057        </tr>
1058
1059      </table>
1060    </td>
1061  </tr>
1062</table>
1063<table cellspacing=5 cellpadding=0 border=0>
1064  <tr>
1065    <td>
1066      &nbsp;
1067    </td>
1068    <td>
1069
1070<p>
1071
1072<p>
1073Definition at line <a class="el" href="OgreVector2_8h-source.html#l00247">247</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1074<p>
1075References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
1076  </tr>
1077</table>
1078<a class="anchor" name="Ogre_1_1Vector2a17" doxytag="Ogre::Vector2::operator/" ></a><p>
1079<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1080  <tr>
1081    <td class="mdRow">
1082      <table cellpadding="0" cellspacing="0" border="0">
1083        <tr>
1084          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::operator/ </td>
1085          <td class="md" valign="top">(&nbsp;</td>
1086          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1087          <td class="mdname1" valign="top" nowrap> <em>fScalar</em>          </td>
1088          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1089          <td class="md" nowrap> const</td>
1090        </tr>
1091
1092      </table>
1093    </td>
1094  </tr>
1095</table>
1096<table cellspacing=5 cellpadding=0 border=0>
1097  <tr>
1098    <td>
1099      &nbsp;
1100    </td>
1101    <td>
1102
1103<p>
1104
1105<p>
1106Definition at line <a class="el" href="OgreVector2_8h-source.html#l00174">174</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1107<p>
1108References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>, <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
1109  </tr>
1110</table>
1111<a class="anchor" name="Ogre_1_1Vector2a24" doxytag="Ogre::Vector2::operator/=" ></a><p>
1112<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1113  <tr>
1114    <td class="mdRow">
1115      <table cellpadding="0" cellspacing="0" border="0">
1116        <tr>
1117          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&amp; Ogre::Vector2::operator/= </td>
1118          <td class="md" valign="top">(&nbsp;</td>
1119          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1120          <td class="mdname1" valign="top" nowrap> <em>fScalar</em>          </td>
1121          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1122          <td class="md" nowrap></td>
1123        </tr>
1124
1125      </table>
1126    </td>
1127  </tr>
1128</table>
1129<table cellspacing=5 cellpadding=0 border=0>
1130  <tr>
1131    <td>
1132      &nbsp;
1133    </td>
1134    <td>
1135
1136<p>
1137
1138<p>
1139Definition at line <a class="el" href="OgreVector2_8h-source.html#l00271">271</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1140<p>
1141References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
1142  </tr>
1143</table>
1144<a class="anchor" name="Ogre_1_1Vector2a30" doxytag="Ogre::Vector2::operator<" ></a><p>
1145<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1146  <tr>
1147    <td class="mdRow">
1148      <table cellpadding="0" cellspacing="0" border="0">
1149        <tr>
1150          <td class="md" nowrap valign="top"> bool Ogre::Vector2::operator&lt; </td>
1151          <td class="md" valign="top">(&nbsp;</td>
1152          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1153          <td class="mdname1" valign="top" nowrap> <em>rhs</em>          </td>
1154          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1155          <td class="md" nowrap> const</td>
1156        </tr>
1157
1158      </table>
1159    </td>
1160  </tr>
1161</table>
1162<table cellspacing=5 cellpadding=0 border=0>
1163  <tr>
1164    <td>
1165      &nbsp;
1166    </td>
1167    <td>
1168
1169<p>
1170Returns true if the vector's scalar components are all greater that the ones of the vector it is compared against.
1171<p>
1172
1173<p>
1174Definition at line <a class="el" href="OgreVector2_8h-source.html#l00368">368</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1175<p>
1176References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
1177  </tr>
1178</table>
1179<a class="anchor" name="Ogre_1_1Vector2a10" doxytag="Ogre::Vector2::operator=" ></a><p>
1180<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1181  <tr>
1182    <td class="mdRow">
1183      <table cellpadding="0" cellspacing="0" border="0">
1184        <tr>
1185          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&amp; Ogre::Vector2::operator= </td>
1186          <td class="md" valign="top">(&nbsp;</td>
1187          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1188          <td class="mdname1" valign="top" nowrap> <em>fScalar</em>          </td>
1189          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1190          <td class="md" nowrap></td>
1191        </tr>
1192
1193      </table>
1194    </td>
1195  </tr>
1196</table>
1197<table cellspacing=5 cellpadding=0 border=0>
1198  <tr>
1199    <td>
1200      &nbsp;
1201    </td>
1202    <td>
1203
1204<p>
1205
1206<p>
1207Definition at line <a class="el" href="OgreVector2_8h-source.html#l00115">115</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1208<p>
1209References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
1210  </tr>
1211</table>
1212<a class="anchor" name="Ogre_1_1Vector2a9" doxytag="Ogre::Vector2::operator=" ></a><p>
1213<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1214  <tr>
1215    <td class="mdRow">
1216      <table cellpadding="0" cellspacing="0" border="0">
1217        <tr>
1218          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a>&amp; Ogre::Vector2::operator= </td>
1219          <td class="md" valign="top">(&nbsp;</td>
1220          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1221          <td class="mdname1" valign="top" nowrap> <em>rkVector</em>          </td>
1222          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1223          <td class="md" nowrap></td>
1224        </tr>
1225
1226      </table>
1227    </td>
1228  </tr>
1229</table>
1230<table cellspacing=5 cellpadding=0 border=0>
1231  <tr>
1232    <td>
1233      &nbsp;
1234    </td>
1235    <td>
1236
1237<p>
1238Assigns the value of the other vector.
1239<p>
1240<dl compact><dt><b>Parameters:</b></dt><dd>
1241  <table border="0" cellspacing="2" cellpadding="0">
1242    <tr><td valign=top><em>rkVector</em>&nbsp;</td><td>The other vector </td></tr>
1243  </table>
1244</dl>
1245
1246<p>
1247Definition at line <a class="el" href="OgreVector2_8h-source.html#l00107">107</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1248<p>
1249References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
1250  </tr>
1251</table>
1252<a class="anchor" name="Ogre_1_1Vector2a11" doxytag="Ogre::Vector2::operator==" ></a><p>
1253<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1254  <tr>
1255    <td class="mdRow">
1256      <table cellpadding="0" cellspacing="0" border="0">
1257        <tr>
1258          <td class="md" nowrap valign="top"> bool Ogre::Vector2::operator== </td>
1259          <td class="md" valign="top">(&nbsp;</td>
1260          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1261          <td class="mdname1" valign="top" nowrap> <em>rkVector</em>          </td>
1262          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1263          <td class="md" nowrap> const</td>
1264        </tr>
1265
1266      </table>
1267    </td>
1268  </tr>
1269</table>
1270<table cellspacing=5 cellpadding=0 border=0>
1271  <tr>
1272    <td>
1273      &nbsp;
1274    </td>
1275    <td>
1276
1277<p>
1278
1279<p>
1280Definition at line <a class="el" href="OgreVector2_8h-source.html#l00123">123</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1281<p>
1282References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
1283  </tr>
1284</table>
1285<a class="anchor" name="Ogre_1_1Vector2a31" doxytag="Ogre::Vector2::operator>" ></a><p>
1286<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1287  <tr>
1288    <td class="mdRow">
1289      <table cellpadding="0" cellspacing="0" border="0">
1290        <tr>
1291          <td class="md" nowrap valign="top"> bool Ogre::Vector2::operator&gt; </td>
1292          <td class="md" valign="top">(&nbsp;</td>
1293          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1294          <td class="mdname1" valign="top" nowrap> <em>rhs</em>          </td>
1295          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1296          <td class="md" nowrap> const</td>
1297        </tr>
1298
1299      </table>
1300    </td>
1301  </tr>
1302</table>
1303<table cellspacing=5 cellpadding=0 border=0>
1304  <tr>
1305    <td>
1306      &nbsp;
1307    </td>
1308    <td>
1309
1310<p>
1311Returns true if the vector's scalar components are all smaller that the ones of the vector it is compared against.
1312<p>
1313
1314<p>
1315Definition at line <a class="el" href="OgreVector2_8h-source.html#l00378">378</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1316<p>
1317References <a class="el" href="OgreVector2_8h-source.html#l00047">x</a>, and <a class="el" href="OgreVector2_8h-source.html#l00047">y</a>.    </td>
1318  </tr>
1319</table>
1320<a class="anchor" name="Ogre_1_1Vector2a8" doxytag="Ogre::Vector2::operator[]" ></a><p>
1321<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1322  <tr>
1323    <td class="mdRow">
1324      <table cellpadding="0" cellspacing="0" border="0">
1325        <tr>
1326          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a>&amp; Ogre::Vector2::operator[] </td>
1327          <td class="md" valign="top">(&nbsp;</td>
1328          <td class="md" nowrap valign="top">const size_t&nbsp;</td>
1329          <td class="mdname1" valign="top" nowrap> <em>i</em>          </td>
1330          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1331          <td class="md" nowrap></td>
1332        </tr>
1333
1334      </table>
1335    </td>
1336  </tr>
1337</table>
1338<table cellspacing=5 cellpadding=0 border=0>
1339  <tr>
1340    <td>
1341      &nbsp;
1342    </td>
1343    <td>
1344
1345<p>
1346
1347<p>
1348Definition at line <a class="el" href="OgreVector2_8h-source.html#l00096">96</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1349<p>
1350References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
1351  </tr>
1352</table>
1353<a class="anchor" name="Ogre_1_1Vector2a7" doxytag="Ogre::Vector2::operator[]" ></a><p>
1354<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1355  <tr>
1356    <td class="mdRow">
1357      <table cellpadding="0" cellspacing="0" border="0">
1358        <tr>
1359          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> Ogre::Vector2::operator[] </td>
1360          <td class="md" valign="top">(&nbsp;</td>
1361          <td class="md" nowrap valign="top">const size_t&nbsp;</td>
1362          <td class="mdname1" valign="top" nowrap> <em>i</em>          </td>
1363          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1364          <td class="md" nowrap> const</td>
1365        </tr>
1366
1367      </table>
1368    </td>
1369  </tr>
1370</table>
1371<table cellspacing=5 cellpadding=0 border=0>
1372  <tr>
1373    <td>
1374      &nbsp;
1375    </td>
1376    <td>
1377
1378<p>
1379
1380<p>
1381Definition at line <a class="el" href="OgreVector2_8h-source.html#l00089">89</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1382<p>
1383References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
1384  </tr>
1385</table>
1386<a class="anchor" name="Ogre_1_1Vector2a34" doxytag="Ogre::Vector2::perpendicular" ></a><p>
1387<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1388  <tr>
1389    <td class="mdRow">
1390      <table cellpadding="0" cellspacing="0" border="0">
1391        <tr>
1392          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::perpendicular </td>
1393          <td class="md" valign="top">(&nbsp;</td>
1394          <td class="md" nowrap valign="top">void&nbsp;</td>
1395          <td class="mdname1" valign="top" nowrap>          </td>
1396          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1397          <td class="md" nowrap> const</td>
1398        </tr>
1399
1400      </table>
1401    </td>
1402  </tr>
1403</table>
1404<table cellspacing=5 cellpadding=0 border=0>
1405  <tr>
1406    <td>
1407      &nbsp;
1408    </td>
1409    <td>
1410
1411<p>
1412Generates a vector perpendicular to this vector (eg an 'up' vector).
1413<p>
1414<dl compact><dt><b>Remarks:</b></dt><dd>This method will return a vector which is perpendicular to this vector. There are an infinite number of possibilities but this method will guarantee to generate one of them. If you need more control you should use the <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> class. </dd></dl>
1415
1416<p>
1417Definition at line <a class="el" href="OgreVector2_8h-source.html#l00418">418</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1418  </tr>
1419</table>
1420<a class="anchor" name="Ogre_1_1Vector2a36" doxytag="Ogre::Vector2::randomDeviant" ></a><p>
1421<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1422  <tr>
1423    <td class="mdRow">
1424      <table cellpadding="0" cellspacing="0" border="0">
1425        <tr>
1426          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::randomDeviant </td>
1427          <td class="md" valign="top">(&nbsp;</td>
1428          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1429          <td class="mdname1" valign="top" nowrap> <em>angle</em>          </td>
1430          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1431          <td class="md" nowrap> const</td>
1432        </tr>
1433
1434      </table>
1435    </td>
1436  </tr>
1437</table>
1438<table cellspacing=5 cellpadding=0 border=0>
1439  <tr>
1440    <td>
1441      &nbsp;
1442    </td>
1443    <td>
1444
1445<p>
1446Generates a new random vector which deviates from this vector by a given angle in a random direction.
1447<p>
1448<dl compact><dt><b>Remarks:</b></dt><dd>This method assumes that the random number generator has already been seeded appropriately. </dd></dl>
1449<dl compact><dt><b>Parameters:</b></dt><dd>
1450  <table border="0" cellspacing="2" cellpadding="0">
1451    <tr><td valign=top><em>angle</em>&nbsp;</td><td>The angle at which to deviate in radians </td></tr>
1452    <tr><td valign=top><em>up</em>&nbsp;</td><td><a class="el" href="classOgre_1_1Any.html">Any</a> vector perpendicular to this one (which could generated by cross-product of this vector and any other non-colinear vector). If you choose not to provide this the function will derive one on it's own, however if you provide one yourself the function will be faster (this allows you to reuse up vectors if you call this method more than once) </td></tr>
1453  </table>
1454</dl>
1455<dl compact><dt><b>Returns:</b></dt><dd>A random vector which deviates from this vector by angle. This vector will not be normalised, normalise it if you wish afterwards. </dd></dl>
1456
1457<p>
1458Definition at line <a class="el" href="OgreVector2_8h-source.html#l00448">448</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1459<p>
1460References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
1461  </tr>
1462</table>
1463<a class="anchor" name="Ogre_1_1Vector2a39" doxytag="Ogre::Vector2::reflect" ></a><p>
1464<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1465  <tr>
1466    <td class="mdRow">
1467      <table cellpadding="0" cellspacing="0" border="0">
1468        <tr>
1469          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> Ogre::Vector2::reflect </td>
1470          <td class="md" valign="top">(&nbsp;</td>
1471          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1472          <td class="mdname1" valign="top" nowrap> <em>normal</em>          </td>
1473          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1474          <td class="md" nowrap> const</td>
1475        </tr>
1476
1477      </table>
1478    </td>
1479  </tr>
1480</table>
1481<table cellspacing=5 cellpadding=0 border=0>
1482  <tr>
1483    <td>
1484      &nbsp;
1485    </td>
1486    <td>
1487
1488<p>
1489Calculates a reflection vector to the plane with the given normal .
1490<p>
1491<dl compact><dt><b>Remarks:</b></dt><dd>NB assumes 'this' is pointing AWAY FROM the plane, invert if it is not. </dd></dl>
1492
1493<p>
1494Definition at line <a class="el" href="OgreVector2_8h-source.html#l00479">479</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1495  </tr>
1496</table>
1497<a class="anchor" name="Ogre_1_1Vector2a26" doxytag="Ogre::Vector2::squaredLength" ></a><p>
1498<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1499  <tr>
1500    <td class="mdRow">
1501      <table cellpadding="0" cellspacing="0" border="0">
1502        <tr>
1503          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> Ogre::Vector2::squaredLength </td>
1504          <td class="md" valign="top">(&nbsp;</td>
1505          <td class="mdname1" valign="top" nowrap>          </td>
1506          <td class="md" valign="top">&nbsp;)&nbsp;</td>
1507          <td class="md" nowrap> const</td>
1508        </tr>
1509
1510      </table>
1511    </td>
1512  </tr>
1513</table>
1514<table cellspacing=5 cellpadding=0 border=0>
1515  <tr>
1516    <td>
1517      &nbsp;
1518    </td>
1519    <td>
1520
1521<p>
1522Returns the square of the length(magnitude) of the vector.
1523<p>
1524<dl compact><dt><b>Remarks:</b></dt><dd>This method is for efficiency - calculating the actual length of a vector requires a square root, which is expensive in terms of the operations required. This method returns the square of the length of the vector, i.e. the same as the length but before the square root is taken. Use this if you want to find the longest / shortest vector without incurring the square root. </dd></dl>
1525
1526<p>
1527Definition at line <a class="el" href="OgreVector2_8h-source.html#l00305">305</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1528<p>
1529References <a class="el" href="OgrePrerequisites_8h-source.html#l00113">Ogre::Real</a>.    </td>
1530  </tr>
1531</table>
1532<hr><h2>Friends And Related Function Documentation</h2>
1533<a class="anchor" name="Ogre_1_1Vector2n0" doxytag="Ogre::Vector2::operator *" ></a><p>
1534<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1535  <tr>
1536    <td class="mdRow">
1537      <table cellpadding="0" cellspacing="0" border="0">
1538        <tr>
1539          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> operator * </td>
1540          <td class="md" valign="top">(&nbsp;</td>
1541          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1542          <td class="mdname" nowrap> <em>fScalar</em>, </td>
1543        </tr>
1544        <tr>
1545          <td class="md" nowrap align="right"></td>
1546          <td></td>
1547          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1548          <td class="mdname" nowrap> <em>rkVector</em></td>
1549        </tr>
1550        <tr>
1551          <td></td>
1552          <td class="md">)&nbsp;</td>
1553          <td class="md" colspan="2"><code> [friend]</code></td>
1554        </tr>
1555
1556      </table>
1557    </td>
1558  </tr>
1559</table>
1560<table cellspacing=5 cellpadding=0 border=0>
1561  <tr>
1562    <td>
1563      &nbsp;
1564    </td>
1565    <td>
1566
1567<p>
1568
1569<p>
1570Definition at line <a class="el" href="OgreVector2_8h-source.html#l00198">198</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1571  </tr>
1572</table>
1573<a class="anchor" name="Ogre_1_1Vector2n2" doxytag="Ogre::Vector2::operator+" ></a><p>
1574<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1575  <tr>
1576    <td class="mdRow">
1577      <table cellpadding="0" cellspacing="0" border="0">
1578        <tr>
1579          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> operator+ </td>
1580          <td class="md" valign="top">(&nbsp;</td>
1581          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1582          <td class="mdname" nowrap> <em>lhs</em>, </td>
1583        </tr>
1584        <tr>
1585          <td class="md" nowrap align="right"></td>
1586          <td></td>
1587          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1588          <td class="mdname" nowrap> <em>rhs</em></td>
1589        </tr>
1590        <tr>
1591          <td></td>
1592          <td class="md">)&nbsp;</td>
1593          <td class="md" colspan="2"><code> [friend]</code></td>
1594        </tr>
1595
1596      </table>
1597    </td>
1598  </tr>
1599</table>
1600<table cellspacing=5 cellpadding=0 border=0>
1601  <tr>
1602    <td>
1603      &nbsp;
1604    </td>
1605    <td>
1606
1607<p>
1608
1609<p>
1610Definition at line <a class="el" href="OgreVector2_8h-source.html#l00214">214</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1611  </tr>
1612</table>
1613<a class="anchor" name="Ogre_1_1Vector2n1" doxytag="Ogre::Vector2::operator+" ></a><p>
1614<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1615  <tr>
1616    <td class="mdRow">
1617      <table cellpadding="0" cellspacing="0" border="0">
1618        <tr>
1619          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> operator+ </td>
1620          <td class="md" valign="top">(&nbsp;</td>
1621          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1622          <td class="mdname" nowrap> <em>lhs</em>, </td>
1623        </tr>
1624        <tr>
1625          <td class="md" nowrap align="right"></td>
1626          <td></td>
1627          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1628          <td class="mdname" nowrap> <em>rhs</em></td>
1629        </tr>
1630        <tr>
1631          <td></td>
1632          <td class="md">)&nbsp;</td>
1633          <td class="md" colspan="2"><code> [friend]</code></td>
1634        </tr>
1635
1636      </table>
1637    </td>
1638  </tr>
1639</table>
1640<table cellspacing=5 cellpadding=0 border=0>
1641  <tr>
1642    <td>
1643      &nbsp;
1644    </td>
1645    <td>
1646
1647<p>
1648
1649<p>
1650Definition at line <a class="el" href="OgreVector2_8h-source.html#l00208">208</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1651  </tr>
1652</table>
1653<a class="anchor" name="Ogre_1_1Vector2n4" doxytag="Ogre::Vector2::operator-" ></a><p>
1654<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1655  <tr>
1656    <td class="mdRow">
1657      <table cellpadding="0" cellspacing="0" border="0">
1658        <tr>
1659          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> operator- </td>
1660          <td class="md" valign="top">(&nbsp;</td>
1661          <td class="md" nowrap valign="top">const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1662          <td class="mdname" nowrap> <em>lhs</em>, </td>
1663        </tr>
1664        <tr>
1665          <td class="md" nowrap align="right"></td>
1666          <td></td>
1667          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1668          <td class="mdname" nowrap> <em>rhs</em></td>
1669        </tr>
1670        <tr>
1671          <td></td>
1672          <td class="md">)&nbsp;</td>
1673          <td class="md" colspan="2"><code> [friend]</code></td>
1674        </tr>
1675
1676      </table>
1677    </td>
1678  </tr>
1679</table>
1680<table cellspacing=5 cellpadding=0 border=0>
1681  <tr>
1682    <td>
1683      &nbsp;
1684    </td>
1685    <td>
1686
1687<p>
1688
1689<p>
1690Definition at line <a class="el" href="OgreVector2_8h-source.html#l00225">225</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1691  </tr>
1692</table>
1693<a class="anchor" name="Ogre_1_1Vector2n3" doxytag="Ogre::Vector2::operator-" ></a><p>
1694<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1695  <tr>
1696    <td class="mdRow">
1697      <table cellpadding="0" cellspacing="0" border="0">
1698        <tr>
1699          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> operator- </td>
1700          <td class="md" valign="top">(&nbsp;</td>
1701          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1702          <td class="mdname" nowrap> <em>lhs</em>, </td>
1703        </tr>
1704        <tr>
1705          <td class="md" nowrap align="right"></td>
1706          <td></td>
1707          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a465">Real</a>&nbsp;</td>
1708          <td class="mdname" nowrap> <em>rhs</em></td>
1709        </tr>
1710        <tr>
1711          <td></td>
1712          <td class="md">)&nbsp;</td>
1713          <td class="md" colspan="2"><code> [friend]</code></td>
1714        </tr>
1715
1716      </table>
1717    </td>
1718  </tr>
1719</table>
1720<table cellspacing=5 cellpadding=0 border=0>
1721  <tr>
1722    <td>
1723      &nbsp;
1724    </td>
1725    <td>
1726
1727<p>
1728
1729<p>
1730Definition at line <a class="el" href="OgreVector2_8h-source.html#l00220">220</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1731  </tr>
1732</table>
1733<a class="anchor" name="Ogre_1_1Vector2n5" doxytag="Ogre::Vector2::operator<<" ></a><p>
1734<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1735  <tr>
1736    <td class="mdRow">
1737      <table cellpadding="0" cellspacing="0" border="0">
1738        <tr>
1739          <td class="md" nowrap valign="top"> _OgreExport friend std::ostream&amp; operator&lt;&lt; </td>
1740          <td class="md" valign="top">(&nbsp;</td>
1741          <td class="md" nowrap valign="top">std::ostream &amp;&nbsp;</td>
1742          <td class="mdname" nowrap> <em>o</em>, </td>
1743        </tr>
1744        <tr>
1745          <td class="md" nowrap align="right"></td>
1746          <td></td>
1747          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> &amp;&nbsp;</td>
1748          <td class="mdname" nowrap> <em>v</em></td>
1749        </tr>
1750        <tr>
1751          <td></td>
1752          <td class="md">)&nbsp;</td>
1753          <td class="md" colspan="2"><code> [friend]</code></td>
1754        </tr>
1755
1756      </table>
1757    </td>
1758  </tr>
1759</table>
1760<table cellspacing=5 cellpadding=0 border=0>
1761  <tr>
1762    <td>
1763      &nbsp;
1764    </td>
1765    <td>
1766
1767<p>
1768Function for writing to a stream.
1769<p>
1770
1771<p>
1772Definition at line <a class="el" href="OgreVector2_8h-source.html#l00495">495</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1773  </tr>
1774</table>
1775<hr><h2>Member Data Documentation</h2>
1776<a class="anchor" name="Ogre_1_1Vector2s3" doxytag="Ogre::Vector2::NEGATIVE_UNIT_X" ></a><p>
1777<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1778  <tr>
1779    <td class="mdRow">
1780      <table cellpadding="0" cellspacing="0" border="0">
1781        <tr>
1782          <td class="md" nowrap valign="top"> const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s3">Ogre::Vector2::NEGATIVE_UNIT_X</a><code> [static]</code>
1783      </table>
1784    </td>
1785  </tr>
1786</table>
1787<table cellspacing=5 cellpadding=0 border=0>
1788  <tr>
1789    <td>
1790      &nbsp;
1791    </td>
1792    <td>
1793
1794<p>
1795
1796<p>
1797Definition at line <a class="el" href="OgreVector2_8h-source.html#l00488">488</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1798  </tr>
1799</table>
1800<a class="anchor" name="Ogre_1_1Vector2s4" doxytag="Ogre::Vector2::NEGATIVE_UNIT_Y" ></a><p>
1801<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1802  <tr>
1803    <td class="mdRow">
1804      <table cellpadding="0" cellspacing="0" border="0">
1805        <tr>
1806          <td class="md" nowrap valign="top"> const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s4">Ogre::Vector2::NEGATIVE_UNIT_Y</a><code> [static]</code>
1807      </table>
1808    </td>
1809  </tr>
1810</table>
1811<table cellspacing=5 cellpadding=0 border=0>
1812  <tr>
1813    <td>
1814      &nbsp;
1815    </td>
1816    <td>
1817
1818<p>
1819
1820<p>
1821Definition at line <a class="el" href="OgreVector2_8h-source.html#l00489">489</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1822  </tr>
1823</table>
1824<a class="anchor" name="Ogre_1_1Vector2s5" doxytag="Ogre::Vector2::UNIT_SCALE" ></a><p>
1825<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1826  <tr>
1827    <td class="mdRow">
1828      <table cellpadding="0" cellspacing="0" border="0">
1829        <tr>
1830          <td class="md" nowrap valign="top"> const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s5">Ogre::Vector2::UNIT_SCALE</a><code> [static]</code>
1831      </table>
1832    </td>
1833  </tr>
1834</table>
1835<table cellspacing=5 cellpadding=0 border=0>
1836  <tr>
1837    <td>
1838      &nbsp;
1839    </td>
1840    <td>
1841
1842<p>
1843
1844<p>
1845Definition at line <a class="el" href="OgreVector2_8h-source.html#l00490">490</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1846  </tr>
1847</table>
1848<a class="anchor" name="Ogre_1_1Vector2s1" doxytag="Ogre::Vector2::UNIT_X" ></a><p>
1849<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1850  <tr>
1851    <td class="mdRow">
1852      <table cellpadding="0" cellspacing="0" border="0">
1853        <tr>
1854          <td class="md" nowrap valign="top"> const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s1">Ogre::Vector2::UNIT_X</a><code> [static]</code>
1855      </table>
1856    </td>
1857  </tr>
1858</table>
1859<table cellspacing=5 cellpadding=0 border=0>
1860  <tr>
1861    <td>
1862      &nbsp;
1863    </td>
1864    <td>
1865
1866<p>
1867
1868<p>
1869Definition at line <a class="el" href="OgreVector2_8h-source.html#l00486">486</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1870  </tr>
1871</table>
1872<a class="anchor" name="Ogre_1_1Vector2s2" doxytag="Ogre::Vector2::UNIT_Y" ></a><p>
1873<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1874  <tr>
1875    <td class="mdRow">
1876      <table cellpadding="0" cellspacing="0" border="0">
1877        <tr>
1878          <td class="md" nowrap valign="top"> const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s2">Ogre::Vector2::UNIT_Y</a><code> [static]</code>
1879      </table>
1880    </td>
1881  </tr>
1882</table>
1883<table cellspacing=5 cellpadding=0 border=0>
1884  <tr>
1885    <td>
1886      &nbsp;
1887    </td>
1888    <td>
1889
1890<p>
1891
1892<p>
1893Definition at line <a class="el" href="OgreVector2_8h-source.html#l00487">487</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1894  </tr>
1895</table>
1896<a class="anchor" name="Ogre_1_1Vector2o2" doxytag="Ogre::Vector2::val" ></a><p>
1897<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1898  <tr>
1899    <td class="mdRow">
1900      <table cellpadding="0" cellspacing="0" border="0">
1901        <tr>
1902          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2o2">Ogre::Vector2::val</a>[2]
1903      </table>
1904    </td>
1905  </tr>
1906</table>
1907<table cellspacing=5 cellpadding=0 border=0>
1908  <tr>
1909    <td>
1910      &nbsp;
1911    </td>
1912    <td>
1913
1914<p>
1915
1916<p>
1917Definition at line <a class="el" href="OgreVector2_8h-source.html#l00049">49</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1918<p>
1919Referenced by <a class="el" href="OgreAnimable_8h-source.html#l00091">Ogre::AnimableValue::setAsBaseValue()</a>.    </td>
1920  </tr>
1921</table>
1922<a class="anchor" name="Ogre_1_1Vector2o0" doxytag="Ogre::Vector2::x" ></a><p>
1923<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1924  <tr>
1925    <td class="mdRow">
1926      <table cellpadding="0" cellspacing="0" border="0">
1927        <tr>
1928          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2o0">Ogre::Vector2::x</a>
1929      </table>
1930    </td>
1931  </tr>
1932</table>
1933<table cellspacing=5 cellpadding=0 border=0>
1934  <tr>
1935    <td>
1936      &nbsp;
1937    </td>
1938    <td>
1939
1940<p>
1941
1942<p>
1943Definition at line <a class="el" href="OgreVector2_8h-source.html#l00047">47</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1944<p>
1945Referenced by <a class="el" href="OgreVector2_8h-source.html#l00425">crossProduct()</a>, <a class="el" href="OgreVector2_8h-source.html#l00324">dotProduct()</a>, <a class="el" href="OgreVector2_8h-source.html#l00405">makeCeil()</a>, <a class="el" href="OgreVector2_8h-source.html#l00392">makeFloor()</a>, <a class="el" href="OgreVector2_8h-source.html#l00358">midPoint()</a>, <a class="el" href="OgreVector2_8h-source.html#l00154">operator *()</a>, <a class="el" href="OgreVector2_8h-source.html#l00128">operator!=()</a>, <a class="el" href="OgreVector2_8h-source.html#l00134">operator+()</a>, <a class="el" href="OgreVector2_8h-source.html#l00231">operator+=()</a>, <a class="el" href="OgreVector2_8h-source.html#l00144">operator-()</a>, <a class="el" href="OgreVector2_8h-source.html#l00247">operator-=()</a>, <a class="el" href="OgreVector2_8h-source.html#l00174">operator/()</a>, <a class="el" href="OgreVector2_8h-source.html#l00368">operator&lt;()</a>, <a class="el" href="OgreVector2_8h-source.html#l00107">operator=()</a>, <a class="el" href="OgreVector2_8h-source.html#l00123">operator==()</a>, and <a class="el" href="OgreVector2_8h-source.html#l00378">operator&gt;()</a>.    </td>
1946  </tr>
1947</table>
1948<a class="anchor" name="Ogre_1_1Vector2o1" doxytag="Ogre::Vector2::y" ></a><p>
1949<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1950  <tr>
1951    <td class="mdRow">
1952      <table cellpadding="0" cellspacing="0" border="0">
1953        <tr>
1954          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a465">Real</a> <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2o1">Ogre::Vector2::y</a>
1955      </table>
1956    </td>
1957  </tr>
1958</table>
1959<table cellspacing=5 cellpadding=0 border=0>
1960  <tr>
1961    <td>
1962      &nbsp;
1963    </td>
1964    <td>
1965
1966<p>
1967
1968<p>
1969Definition at line <a class="el" href="OgreVector2_8h-source.html#l00047">47</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.
1970<p>
1971Referenced by <a class="el" href="OgreVector2_8h-source.html#l00425">crossProduct()</a>, <a class="el" href="OgreVector2_8h-source.html#l00324">dotProduct()</a>, <a class="el" href="OgreVector2_8h-source.html#l00405">makeCeil()</a>, <a class="el" href="OgreVector2_8h-source.html#l00392">makeFloor()</a>, <a class="el" href="OgreVector2_8h-source.html#l00358">midPoint()</a>, <a class="el" href="OgreVector2_8h-source.html#l00154">operator *()</a>, <a class="el" href="OgreVector2_8h-source.html#l00128">operator!=()</a>, <a class="el" href="OgreVector2_8h-source.html#l00134">operator+()</a>, <a class="el" href="OgreVector2_8h-source.html#l00231">operator+=()</a>, <a class="el" href="OgreVector2_8h-source.html#l00144">operator-()</a>, <a class="el" href="OgreVector2_8h-source.html#l00247">operator-=()</a>, <a class="el" href="OgreVector2_8h-source.html#l00174">operator/()</a>, <a class="el" href="OgreVector2_8h-source.html#l00368">operator&lt;()</a>, <a class="el" href="OgreVector2_8h-source.html#l00107">operator=()</a>, <a class="el" href="OgreVector2_8h-source.html#l00123">operator==()</a>, and <a class="el" href="OgreVector2_8h-source.html#l00378">operator&gt;()</a>.    </td>
1972  </tr>
1973</table>
1974<a class="anchor" name="Ogre_1_1Vector2s0" doxytag="Ogre::Vector2::ZERO" ></a><p>
1975<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1976  <tr>
1977    <td class="mdRow">
1978      <table cellpadding="0" cellspacing="0" border="0">
1979        <tr>
1980          <td class="md" nowrap valign="top"> const <a class="el" href="classOgre_1_1Vector2.html">Vector2</a> <a class="el" href="classOgre_1_1Vector2.html#Ogre_1_1Vector2s0">Ogre::Vector2::ZERO</a><code> [static]</code>
1981      </table>
1982    </td>
1983  </tr>
1984</table>
1985<table cellspacing=5 cellpadding=0 border=0>
1986  <tr>
1987    <td>
1988      &nbsp;
1989    </td>
1990    <td>
1991
1992<p>
1993
1994<p>
1995Definition at line <a class="el" href="OgreVector2_8h-source.html#l00485">485</a> of file <a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a>.    </td>
1996  </tr>
1997</table>
1998<hr>The documentation for this class was generated from the following file:<ul>
1999<li><a class="el" href="OgreVector2_8h-source.html">OgreVector2.h</a></ul>
2000<hr>
2001<p>
2002Copyright &copy; 2000-2005 by The OGRE Team<br />
2003<!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>
2004This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/>
2005                <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
2006                <Work rdf:about="">
2007                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
2008        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
2009                </Work>
2010                <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> -->
2011
2012Last modified Sun Mar 12 14:45:54 2006
2013</p>
2014</body>
2015</html>
Note: See TracBrowser for help on using the repository browser.