<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Irrlicht Engine: irr::core::dimension2d< T > Class Template Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table class="irrlicht" > <tr valign="middle"> <td><font size="2"><a class="qindex" href="index.html"><font color="#FFFFFF">Home</font></a> | <a class="qindex" href="namespaces.html"><font color="#FFFFFF">Namespaces</font></a> | <a class="qindex" href="hierarchy.html"><font color="#FFFFFF">Hierarchy</font></a> | <a class="qindex" href="classes.html"><font color="#FFFFFF">Alphabetical List</font></a> | <a class="qindex" href="annotated.html"><font color="#FFFFFF"> Class list</font></a> | <a class="qindex" href="files.html"><font color="#FFFFFF">Files</font></a> | <a class="qindex" href="namespacemembers.html"><font color="#FFFFFF"> Namespace Members</font></a> | <a class="qindex" href="functions.html"><font color="#FFFFFF">Class members</font></a> | <a class="qindex" href="globals.html"><font color="#FFFFFF">File members</font></a> | <a class="qindex" href="pages.html"><font color="#FFFFFF">Tutorials</font></a></font> </td> </tr> </table> <!-- Generated by Doxygen 1.6.2 --> <div class="navpath"><a class="el" href="namespaceirr.html">irr</a>::<a class="el" href="namespaceirr_1_1core.html">core</a>::<a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a> </div> <div class="contents"> <h1>irr::core::dimension2d< T > Class Template Reference</h1><!-- doxytag: class="irr::core::dimension2d" --> <p>Specifies a 2 dimensional size. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>></code></p> <p><a href="classirr_1_1core_1_1dimension2d-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memTemplParams" colspan="2">template<class U > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#aded1ffd1dd572fd4185e57a1b958b4b6">dimension2d</a> (const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< U > &other)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Use this constructor only where you are sure that the conversion is valid. <a href="#aded1ffd1dd572fd4185e57a1b958b4b6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a96f90d1d96392bf736a01f8def8aa7db">dimension2d</a> (const <a class="el" href="classirr_1_1core_1_1vector2d.html">vector2d</a>< T > &other)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a9032aa6e975b32497ed3b570e3d03b76">dimension2d</a> (const T &width, const T &height)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with width and height. <a href="#a9032aa6e975b32497ed3b570e3d03b76"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#ae0c2a30ce6283602c454901ef0bd6a04">dimension2d</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor for empty dimension. <a href="#ae0c2a30ce6283602c454901ef0bd6a04"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">T </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a1454be218dbb43736488ff9f4236f0da">getArea</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get area. <a href="#a1454be218dbb43736488ff9f4236f0da"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a80462f0ce0720f6fc61aed13873db817">getInterpolated</a> (const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > &other, <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> d) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the interpolated dimension. <a href="#a80462f0ce0720f6fc61aed13873db817"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a0490f90fb05d89434cdf367a835abd28">getOptimalSize</a> (bool requirePowerOfTwo=true, bool requireSquare=false, bool larger=true, <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> maxValue=0) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the optimal size according to some properties. <a href="#a0490f90fb05d89434cdf367a835abd28"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a91d1aee9d097f3b9e7259e7a79bbd19d">operator!=</a> (const <a class="el" href="classirr_1_1core_1_1vector2d.html">vector2d</a>< T > &other) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a76c0933b790d66cb3b0c7446bb45e089">operator!=</a> (const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > &other) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Inequality operator. <a href="#a76c0933b790d66cb3b0c7446bb45e089"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a2e4febe786961e1fb3f0c1d61d65cc58">operator*</a> (const T &scale) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiply width and height by scalar. <a href="#a2e4febe786961e1fb3f0c1d61d65cc58"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#acd311b8270b3c95791edf9a5b2869b1b">operator*=</a> (const T &scale)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiply width and height by scalar. <a href="#acd311b8270b3c95791edf9a5b2869b1b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a6f3010fe9e2e9acbf56a1ec15a142765">operator+</a> (const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > &other) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add two dimensions. <a href="#a6f3010fe9e2e9acbf56a1ec15a142765"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#ae233386e59e95f213367922f7638bc46">operator+=</a> (const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > &other)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add another dimension to this one. <a href="#ae233386e59e95f213367922f7638bc46"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#af5bb67163a3cdbcbceb9eda015382bfe">operator-=</a> (const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > &other)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Subtract a dimension from this one. <a href="#af5bb67163a3cdbcbceb9eda015382bfe"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#ab5539b955741b270081559f82c413b70">operator/</a> (const T &scale) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Divide width and height by scalar. <a href="#ab5539b955741b270081559f82c413b70"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#ac581fbe07dabf2a342314c7a73f862c8">operator/=</a> (const T &scale)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Divide width and height by scalar. <a href="#ac581fbe07dabf2a342314c7a73f862c8"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class U > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#aa919e77774339eb0781138ae5219990a">operator=</a> (const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< U > &other)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a34c99e1d9d11c1e20dde2ab6a3a0bfb9">operator==</a> (const <a class="el" href="classirr_1_1core_1_1vector2d.html">vector2d</a>< T > &other) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#aa8e64f2adf3d069324e6159cfb6aa82d">operator==</a> (const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > &other) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Equality operator. <a href="#aa8e64f2adf3d069324e6159cfb6aa82d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a81860d7ff5a888a37af84f7bbbad7c91">set</a> (const T &width, const T &height)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set to new values. <a href="#a81860d7ff5a888a37af84f7bbbad7c91"></a><br/></td></tr> <tr><td colspan="2"><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">T </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b">Height</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Height of the dimension. <a href="#a89b253523d31336c6b2a6a56dfd48a6b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">T </td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4">Width</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Width of the dimension. <a href="#a0399dcc023c19d381d1a192596107db4"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <h3>template<class T><br/> class irr::core::dimension2d< T ></h3> <p>Specifies a 2 dimensional size. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00020">20</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ae0c2a30ce6283602c454901ef0bd6a04"></a><!-- doxytag: member="irr::core::dimension2d::dimension2d" ref="ae0c2a30ce6283602c454901ef0bd6a04" args="()" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::<a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a> </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Default constructor for empty dimension. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00024">24</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a9032aa6e975b32497ed3b570e3d03b76"></a><!-- doxytag: member="irr::core::dimension2d::dimension2d" ref="a9032aa6e975b32497ed3b570e3d03b76" args="(const T &width, const T &height)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::<a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a> </td> <td>(</td> <td class="paramtype">const T & </td> <td class="paramname"> <em>width</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const T & </td> <td class="paramname"> <em>height</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor with width and height. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00026">26</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a96f90d1d96392bf736a01f8def8aa7db"></a><!-- doxytag: member="irr::core::dimension2d::dimension2d" ref="a96f90d1d96392bf736a01f8def8aa7db" args="(const vector2d< T > &other)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::<a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a> </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector2d.html">vector2d</a>< T > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="vector2d_8h_source.html#l00330">330</a> of file <a class="el" href="vector2d_8h_source.html">vector2d.h</a>.</p> </div> </div> <a class="anchor" id="aded1ffd1dd572fd4185e57a1b958b4b6"></a><!-- doxytag: member="irr::core::dimension2d::dimension2d" ref="aded1ffd1dd572fd4185e57a1b958b4b6" args="(const dimension2d< U > &other)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <div class="memtemplate"> template<class U > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::<a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a> </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< U > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td><code> [inline, explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Use this constructor only where you are sure that the conversion is valid. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00033">33</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a1454be218dbb43736488ff9f4236f0da"></a><!-- doxytag: member="irr::core::dimension2d::getArea" ref="a1454be218dbb43736488ff9f4236f0da" args="() const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">T <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::getArea </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Get area. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00125">125</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a80462f0ce0720f6fc61aed13873db817"></a><!-- doxytag: member="irr::core::dimension2d::getInterpolated" ref="a80462f0ce0720f6fc61aed13873db817" args="(const dimension2d< T > &other, f32 d) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T> <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::getInterpolated </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td> <td class="paramname"> <em>other</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> <td class="paramname"> <em>d</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Get the interpolated dimension. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>other</em> </td><td>Other dimension to interpolate with. </td></tr> <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td>Value between 0.0f and 1.0f. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Interpolated dimension. </dd></dl> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00191">191</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a0490f90fb05d89434cdf367a835abd28"></a><!-- doxytag: member="irr::core::dimension2d::getOptimalSize" ref="a0490f90fb05d89434cdf367a835abd28" args="(bool requirePowerOfTwo=true, bool requireSquare=false, bool larger=true, u32 maxValue=0) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T> <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::getOptimalSize </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>requirePowerOfTwo</em> = <code>true</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>requireSquare</em> = <code>false</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>larger</em> = <code>true</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> <td class="paramname"> <em>maxValue</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Get the optimal size according to some properties. </p> <p>This is a function often used for texture dimension calculations. The function returns the next larger or smaller dimension which is a power-of-two dimension (2^n,2^m) and/or square (Width=Height). </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>requirePowerOfTwo</em> </td><td>Forces the result to use only powers of two as values. </td></tr> <tr><td valign="top"></td><td valign="top"><em>requireSquare</em> </td><td>Makes width==height in the result </td></tr> <tr><td valign="top"></td><td valign="top"><em>larger</em> </td><td>Choose whether the result is larger or smaller than the current dimension. If one dimension need not be changed it is kept with any value of larger. </td></tr> <tr><td valign="top"></td><td valign="top"><em>maxValue</em> </td><td>Maximum texturesize. if value > 0 size is clamped to maxValue </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The optimal dimension under the given constraints. </dd></dl> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00145">145</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a91d1aee9d097f3b9e7259e7a79bbd19d"></a><!-- doxytag: member="irr::core::dimension2d::operator!=" ref="a91d1aee9d097f3b9e7259e7a79bbd19d" args="(const vector2d< T > &other) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">bool <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector2d.html">vector2d</a>< T > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00060">60</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a76c0933b790d66cb3b0c7446bb45e089"></a><!-- doxytag: member="irr::core::dimension2d::operator!=" ref="a76c0933b790d66cb3b0c7446bb45e089" args="(const dimension2d< T > &other) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">bool <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Inequality operator. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00053">53</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a2e4febe786961e1fb3f0c1d61d65cc58"></a><!-- doxytag: member="irr::core::dimension2d::operator*" ref="a2e4febe786961e1fb3f0c1d61d65cc58" args="(const T &scale) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T> <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator* </td> <td>(</td> <td class="paramtype">const T & </td> <td class="paramname"> <em>scale</em></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Multiply width and height by scalar. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00096">96</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="acd311b8270b3c95791edf9a5b2869b1b"></a><!-- doxytag: member="irr::core::dimension2d::operator*=" ref="acd311b8270b3c95791edf9a5b2869b1b" args="(const T &scale)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T>& <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator*= </td> <td>(</td> <td class="paramtype">const T & </td> <td class="paramname"> <em>scale</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Multiply width and height by scalar. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00088">88</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a6f3010fe9e2e9acbf56a1ec15a142765"></a><!-- doxytag: member="irr::core::dimension2d::operator+" ref="a6f3010fe9e2e9acbf56a1ec15a142765" args="(const dimension2d< T > &other) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T> <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator+ </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Add two dimensions. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00119">119</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="ae233386e59e95f213367922f7638bc46"></a><!-- doxytag: member="irr::core::dimension2d::operator+=" ref="ae233386e59e95f213367922f7638bc46" args="(const dimension2d< T > &other)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T>& <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator+= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Add another dimension to this one. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00102">102</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="af5bb67163a3cdbcbceb9eda015382bfe"></a><!-- doxytag: member="irr::core::dimension2d::operator-=" ref="af5bb67163a3cdbcbceb9eda015382bfe" args="(const dimension2d< T > &other)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T>& <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator-= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Subtract a dimension from this one. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00110">110</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="ab5539b955741b270081559f82c413b70"></a><!-- doxytag: member="irr::core::dimension2d::operator/" ref="ab5539b955741b270081559f82c413b70" args="(const T &scale) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T> <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator/ </td> <td>(</td> <td class="paramtype">const T & </td> <td class="paramname"> <em>scale</em></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Divide width and height by scalar. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00082">82</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="ac581fbe07dabf2a342314c7a73f862c8"></a><!-- doxytag: member="irr::core::dimension2d::operator/=" ref="ac581fbe07dabf2a342314c7a73f862c8" args="(const T &scale)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T>& <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator/= </td> <td>(</td> <td class="paramtype">const T & </td> <td class="paramname"> <em>scale</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Divide width and height by scalar. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00074">74</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="aa919e77774339eb0781138ae5219990a"></a><!-- doxytag: member="irr::core::dimension2d::operator=" ref="aa919e77774339eb0781138ae5219990a" args="(const dimension2d< U > &other)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <div class="memtemplate"> template<class U > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T>& <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< U > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00037">37</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a34c99e1d9d11c1e20dde2ab6a3a0bfb9"></a><!-- doxytag: member="irr::core::dimension2d::operator==" ref="a34c99e1d9d11c1e20dde2ab6a3a0bfb9" args="(const vector2d< T > &other) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">bool <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1vector2d.html">vector2d</a>< T > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="vector2d_8h_source.html#l00333">333</a> of file <a class="el" href="vector2d_8h_source.html">vector2d.h</a>.</p> <p>References <a class="el" href="dimension2d_8h_source.html#l00201">irr::core::dimension2d< T >::Height</a>, <a class="el" href="dimension2d_8h_source.html#l00199">irr::core::dimension2d< T >::Width</a>, <a class="el" href="vector2d_8h_source.html#l00313">irr::core::vector2d< T >::X</a>, and <a class="el" href="vector2d_8h_source.html#l00316">irr::core::vector2d< T >::Y</a>.</p> </div> </div> <a class="anchor" id="aa8e64f2adf3d069324e6159cfb6aa82d"></a><!-- doxytag: member="irr::core::dimension2d::operator==" ref="aa8e64f2adf3d069324e6159cfb6aa82d" args="(const dimension2d< T > &other) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">bool <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a>< T > & </td> <td class="paramname"> <em>other</em></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Equality operator. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00046">46</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <a class="anchor" id="a81860d7ff5a888a37af84f7bbbad7c91"></a><!-- doxytag: member="irr::core::dimension2d::set" ref="a81860d7ff5a888a37af84f7bbbad7c91" args="(const T &width, const T &height)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classirr_1_1core_1_1dimension2d.html">dimension2d</a><T>& <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::set </td> <td>(</td> <td class="paramtype">const T & </td> <td class="paramname"> <em>width</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const T & </td> <td class="paramname"> <em>height</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Set to new values. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00066">66</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a89b253523d31336c6b2a6a56dfd48a6b"></a><!-- doxytag: member="irr::core::dimension2d::Height" ref="a89b253523d31336c6b2a6a56dfd48a6b" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">T <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::<a class="el" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b">Height</a></td> </tr> </table> </div> <div class="memdoc"> <p>Height of the dimension. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00201">201</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> <p>Referenced by <a class="el" href="dimension2d_8h_source.html#l00125">irr::core::dimension2d< u32 >::getArea()</a>, <a class="el" href="dimension2d_8h_source.html#l00191">irr::core::dimension2d< u32 >::getInterpolated()</a>, <a class="el" href="dimension2d_8h_source.html#l00145">irr::core::dimension2d< u32 >::getOptimalSize()</a>, <a class="el" href="dimension2d_8h_source.html#l00096">irr::core::dimension2d< u32 >::operator*()</a>, <a class="el" href="dimension2d_8h_source.html#l00088">irr::core::dimension2d< u32 >::operator*=()</a>, <a class="el" href="vector2d_8h_source.html#l00044">irr::core::vector2d< f32 >::operator+()</a>, <a class="el" href="dimension2d_8h_source.html#l00119">irr::core::dimension2d< u32 >::operator+()</a>, <a class="el" href="vector2d_8h_source.html#l00048">irr::core::vector2d< f32 >::operator+=()</a>, <a class="el" href="dimension2d_8h_source.html#l00102">irr::core::dimension2d< u32 >::operator+=()</a>, <a class="el" href="vector2d_8h_source.html#l00051">irr::core::vector2d< f32 >::operator-()</a>, <a class="el" href="vector2d_8h_source.html#l00055">irr::core::vector2d< f32 >::operator-=()</a>, <a class="el" href="dimension2d_8h_source.html#l00110">irr::core::dimension2d< u32 >::operator-=()</a>, <a class="el" href="dimension2d_8h_source.html#l00082">irr::core::dimension2d< u32 >::operator/()</a>, <a class="el" href="dimension2d_8h_source.html#l00074">irr::core::dimension2d< u32 >::operator/=()</a>, <a class="el" href="vector2d_8h_source.html#l00041">irr::core::vector2d< f32 >::operator=()</a>, <a class="el" href="dimension2d_8h_source.html#l00037">irr::core::dimension2d< u32 >::operator=()</a>, <a class="el" href="vector2d_8h_source.html#l00333">irr::core::dimension2d< T >::operator==()</a>, <a class="el" href="dimension2d_8h_source.html#l00046">irr::core::dimension2d< u32 >::operator==()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00778">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00714">irr::gui::IGUIElement::serializeAttributes()</a>, <a class="el" href="dimension2d_8h_source.html#l00066">irr::core::dimension2d< u32 >::set()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00179">irr::gui::IGUIElement::setMinSize()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00081">irr::gui::IGUIElement::setRelativePosition()</a>, and <a class="el" href="_i_g_u_i_element_8h_source.html#l00119">irr::gui::IGUIElement::setRelativePositionProportional()</a>.</p> </div> </div> <a class="anchor" id="a0399dcc023c19d381d1a192596107db4"></a><!-- doxytag: member="irr::core::dimension2d::Width" ref="a0399dcc023c19d381d1a192596107db4" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">T <a class="el" href="classirr_1_1core_1_1dimension2d.html">irr::core::dimension2d</a>< T >::<a class="el" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4">Width</a></td> </tr> </table> </div> <div class="memdoc"> <p>Width of the dimension. </p> <p>Definition at line <a class="el" href="dimension2d_8h_source.html#l00199">199</a> of file <a class="el" href="dimension2d_8h_source.html">dimension2d.h</a>.</p> <p>Referenced by <a class="el" href="dimension2d_8h_source.html#l00125">irr::core::dimension2d< u32 >::getArea()</a>, <a class="el" href="dimension2d_8h_source.html#l00191">irr::core::dimension2d< u32 >::getInterpolated()</a>, <a class="el" href="dimension2d_8h_source.html#l00145">irr::core::dimension2d< u32 >::getOptimalSize()</a>, <a class="el" href="dimension2d_8h_source.html#l00096">irr::core::dimension2d< u32 >::operator*()</a>, <a class="el" href="dimension2d_8h_source.html#l00088">irr::core::dimension2d< u32 >::operator*=()</a>, <a class="el" href="vector2d_8h_source.html#l00044">irr::core::vector2d< f32 >::operator+()</a>, <a class="el" href="dimension2d_8h_source.html#l00119">irr::core::dimension2d< u32 >::operator+()</a>, <a class="el" href="vector2d_8h_source.html#l00048">irr::core::vector2d< f32 >::operator+=()</a>, <a class="el" href="dimension2d_8h_source.html#l00102">irr::core::dimension2d< u32 >::operator+=()</a>, <a class="el" href="vector2d_8h_source.html#l00051">irr::core::vector2d< f32 >::operator-()</a>, <a class="el" href="vector2d_8h_source.html#l00055">irr::core::vector2d< f32 >::operator-=()</a>, <a class="el" href="dimension2d_8h_source.html#l00110">irr::core::dimension2d< u32 >::operator-=()</a>, <a class="el" href="dimension2d_8h_source.html#l00082">irr::core::dimension2d< u32 >::operator/()</a>, <a class="el" href="dimension2d_8h_source.html#l00074">irr::core::dimension2d< u32 >::operator/=()</a>, <a class="el" href="vector2d_8h_source.html#l00041">irr::core::vector2d< f32 >::operator=()</a>, <a class="el" href="dimension2d_8h_source.html#l00037">irr::core::dimension2d< u32 >::operator=()</a>, <a class="el" href="vector2d_8h_source.html#l00333">irr::core::dimension2d< T >::operator==()</a>, <a class="el" href="dimension2d_8h_source.html#l00046">irr::core::dimension2d< u32 >::operator==()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00778">irr::gui::IGUIElement::recalculateAbsolutePosition()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00714">irr::gui::IGUIElement::serializeAttributes()</a>, <a class="el" href="dimension2d_8h_source.html#l00066">irr::core::dimension2d< u32 >::set()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00179">irr::gui::IGUIElement::setMinSize()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00081">irr::gui::IGUIElement::setRelativePosition()</a>, and <a class="el" href="_i_g_u_i_element_8h_source.html#l00119">irr::gui::IGUIElement::setRelativePositionProportional()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="dimension2d_8h_source.html">dimension2d.h</a></li> <li><a class="el" href="vector2d_8h_source.html">vector2d.h</a></li> </ul> </div> <hr size="1"> <address style="align: right;"> <small> </small> </address> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="0"> <div align="left"><small><a href="http://irrlicht.sourceforge.net" target="_blank"><img src="irrlicht.png" alt="The Irrlicht Engine" align="middle" border=0 width=88 height=31></a></small></div></td> <td> <div align="left"><small><em><font size="2">The <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht Engine</a> Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Sun Oct 24 12:42:03 2010 by <a href="http://www.doxygen.org" target="_blank">Doxygen</a> (1.6.2)</font></em></small></div></td> </tr> </table> <address style="align: right;"> </address> </body> </html>