SDLU/docs/html/class_transformable.html
2021-04-24 02:01:36 +02:00

789 lines
39 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SDL Utility: Transformable Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SDL Utility
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_transformable.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_transformable-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Transformable Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A class that stores locational information.
<a href="class_transformable.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="_transformable_8hpp_source.html">Transformable.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Transformable:</div>
<div class="dyncontent">
<div class="center">
<img src="class_transformable.png" usemap="#Transformable_map" alt=""/>
<map id="Transformable_map" name="Transformable_map">
<area href="class_shape.html" title="The non-instantiable base class for all SDLU shapes." alt="Shape" shape="rect" coords="0,56,97,80"/>
<area href="classsdlu_1_1_rectangle.html" alt="sdlu::Rectangle" shape="rect" coords="0,112,97,136"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aaf42df1fbbc11ac758342a0cb26eb80a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#aaf42df1fbbc11ac758342a0cb26eb80a">Transformable</a> ()</td></tr>
<tr class="memdesc:aaf42df1fbbc11ac758342a0cb26eb80a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructur. <a href="class_transformable.html#aaf42df1fbbc11ac758342a0cb26eb80a">More...</a><br /></td></tr>
<tr class="separator:aaf42df1fbbc11ac758342a0cb26eb80a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8eae21f70d709159d849a2966c24412"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#ab8eae21f70d709159d849a2966c24412">~Transformable</a> ()</td></tr>
<tr class="memdesc:ab8eae21f70d709159d849a2966c24412"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deconstructor. <a href="class_transformable.html#ab8eae21f70d709159d849a2966c24412">More...</a><br /></td></tr>
<tr class="separator:ab8eae21f70d709159d849a2966c24412"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49f770487198dc60ab7bdfc131778a66"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a49f770487198dc60ab7bdfc131778a66">GetPosition</a> ()</td></tr>
<tr class="memdesc:a49f770487198dc60ab7bdfc131778a66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the position of the object. <a href="class_transformable.html#a49f770487198dc60ab7bdfc131778a66">More...</a><br /></td></tr>
<tr class="separator:a49f770487198dc60ab7bdfc131778a66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dff4cf64143f46e2740da16e8b588bf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a0dff4cf64143f46e2740da16e8b588bf">SetPosition</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;<a class="el" href="class_transformable.html#a1f58c94a72ecab9cca66287f8ac7b20f">position</a>)</td></tr>
<tr class="memdesc:a0dff4cf64143f46e2740da16e8b588bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a new position. <a href="class_transformable.html#a0dff4cf64143f46e2740da16e8b588bf">More...</a><br /></td></tr>
<tr class="separator:a0dff4cf64143f46e2740da16e8b588bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10235cf98c74ee27ed5eb57d440e02e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a10235cf98c74ee27ed5eb57d440e02e2">SetPosition</a> (float x, float y)</td></tr>
<tr class="memdesc:a10235cf98c74ee27ed5eb57d440e02e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a new position. <a href="class_transformable.html#a10235cf98c74ee27ed5eb57d440e02e2">More...</a><br /></td></tr>
<tr class="separator:a10235cf98c74ee27ed5eb57d440e02e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32758b5ffec2466bdd6824d314bc7cbd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a32758b5ffec2466bdd6824d314bc7cbd">Move</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;<a class="el" href="class_transformable.html#a1f58c94a72ecab9cca66287f8ac7b20f">position</a>)</td></tr>
<tr class="memdesc:a32758b5ffec2466bdd6824d314bc7cbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds to the current position. <a href="class_transformable.html#a32758b5ffec2466bdd6824d314bc7cbd">More...</a><br /></td></tr>
<tr class="separator:a32758b5ffec2466bdd6824d314bc7cbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19db1bbc145ea631f8caa16ddcf852bf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a19db1bbc145ea631f8caa16ddcf852bf">Move</a> (float x, float y)</td></tr>
<tr class="memdesc:a19db1bbc145ea631f8caa16ddcf852bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds to the current position. <a href="class_transformable.html#a19db1bbc145ea631f8caa16ddcf852bf">More...</a><br /></td></tr>
<tr class="separator:a19db1bbc145ea631f8caa16ddcf852bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab45027854676ecff39b45f7b1bb8db45"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#ab45027854676ecff39b45f7b1bb8db45">GetOrigin</a> ()</td></tr>
<tr class="memdesc:ab45027854676ecff39b45f7b1bb8db45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current local origin. <a href="class_transformable.html#ab45027854676ecff39b45f7b1bb8db45">More...</a><br /></td></tr>
<tr class="separator:ab45027854676ecff39b45f7b1bb8db45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a4764e72329b3120812569e8d35c109"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a0a4764e72329b3120812569e8d35c109">SetOrigin</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;<a class="el" href="class_transformable.html#aa21dbaab5c9f7f5703d827ae7090a0e8">origin</a>)</td></tr>
<tr class="memdesc:a0a4764e72329b3120812569e8d35c109"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a new local origin. <a href="class_transformable.html#a0a4764e72329b3120812569e8d35c109">More...</a><br /></td></tr>
<tr class="separator:a0a4764e72329b3120812569e8d35c109"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f1cb1413a0b26398b35aa0c9e6c5bc8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a6f1cb1413a0b26398b35aa0c9e6c5bc8">SetOrigin</a> (float x, float y)</td></tr>
<tr class="memdesc:a6f1cb1413a0b26398b35aa0c9e6c5bc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a new local origin. <a href="class_transformable.html#a6f1cb1413a0b26398b35aa0c9e6c5bc8">More...</a><br /></td></tr>
<tr class="separator:a6f1cb1413a0b26398b35aa0c9e6c5bc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bd1f0833826cc91cddbb630f4d2ea00"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a5bd1f0833826cc91cddbb630f4d2ea00">GetScale</a> ()</td></tr>
<tr class="memdesc:a5bd1f0833826cc91cddbb630f4d2ea00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current scale of the object. <a href="class_transformable.html#a5bd1f0833826cc91cddbb630f4d2ea00">More...</a><br /></td></tr>
<tr class="separator:a5bd1f0833826cc91cddbb630f4d2ea00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dfad28c0725d65023164580dbe40eec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a6dfad28c0725d65023164580dbe40eec">SetScale</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;<a class="el" href="class_transformable.html#a587fe840ddac456ba4e8caa5f00ddf0c">scale</a>)</td></tr>
<tr class="memdesc:a6dfad28c0725d65023164580dbe40eec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a new scale. <a href="class_transformable.html#a6dfad28c0725d65023164580dbe40eec">More...</a><br /></td></tr>
<tr class="separator:a6dfad28c0725d65023164580dbe40eec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7eaf9ee1d0110fb92e4643ca856e4e18"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a7eaf9ee1d0110fb92e4643ca856e4e18">SetScale</a> (float x, float y)</td></tr>
<tr class="memdesc:a7eaf9ee1d0110fb92e4643ca856e4e18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a new scale. <a href="class_transformable.html#a7eaf9ee1d0110fb92e4643ca856e4e18">More...</a><br /></td></tr>
<tr class="separator:a7eaf9ee1d0110fb92e4643ca856e4e18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ef8796a3ca3ad79b22be5ef59cd4c3a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a0ef8796a3ca3ad79b22be5ef59cd4c3a">Scale</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;<a class="el" href="class_transformable.html#a587fe840ddac456ba4e8caa5f00ddf0c">scale</a>)</td></tr>
<tr class="memdesc:a0ef8796a3ca3ad79b22be5ef59cd4c3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scales the object by some amount. <a href="class_transformable.html#a0ef8796a3ca3ad79b22be5ef59cd4c3a">More...</a><br /></td></tr>
<tr class="separator:a0ef8796a3ca3ad79b22be5ef59cd4c3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f823978c527cdca2ce5667926aa7ce2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a7f823978c527cdca2ce5667926aa7ce2">Scale</a> (float x, float y)</td></tr>
<tr class="memdesc:a7f823978c527cdca2ce5667926aa7ce2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scales the object by some amount. <a href="class_transformable.html#a7f823978c527cdca2ce5667926aa7ce2">More...</a><br /></td></tr>
<tr class="separator:a7f823978c527cdca2ce5667926aa7ce2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2072c3a7060c9867ce887b937fcc92ae"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a2072c3a7060c9867ce887b937fcc92ae">GetRotation</a> ()</td></tr>
<tr class="memdesc:a2072c3a7060c9867ce887b937fcc92ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current rotation. <a href="class_transformable.html#a2072c3a7060c9867ce887b937fcc92ae">More...</a><br /></td></tr>
<tr class="separator:a2072c3a7060c9867ce887b937fcc92ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6644393bb743781a7745071c307cb481"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a6644393bb743781a7745071c307cb481">SetRotation</a> (float angle)</td></tr>
<tr class="memdesc:a6644393bb743781a7745071c307cb481"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a new rotation. <a href="class_transformable.html#a6644393bb743781a7745071c307cb481">More...</a><br /></td></tr>
<tr class="separator:a6644393bb743781a7745071c307cb481"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4c7bb0f85cc1670f4c13d89f09b5938"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#ab4c7bb0f85cc1670f4c13d89f09b5938">Rotate</a> (float angle)</td></tr>
<tr class="memdesc:ab4c7bb0f85cc1670f4c13d89f09b5938"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotates by some amount. <a href="class_transformable.html#ab4c7bb0f85cc1670f4c13d89f09b5938">More...</a><br /></td></tr>
<tr class="separator:ab4c7bb0f85cc1670f4c13d89f09b5938"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a1f58c94a72ecab9cca66287f8ac7b20f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a1f58c94a72ecab9cca66287f8ac7b20f">position</a></td></tr>
<tr class="memdesc:a1f58c94a72ecab9cca66287f8ac7b20f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Position of the object. <a href="class_transformable.html#a1f58c94a72ecab9cca66287f8ac7b20f">More...</a><br /></td></tr>
<tr class="separator:a1f58c94a72ecab9cca66287f8ac7b20f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa21dbaab5c9f7f5703d827ae7090a0e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#aa21dbaab5c9f7f5703d827ae7090a0e8">origin</a></td></tr>
<tr class="memdesc:aa21dbaab5c9f7f5703d827ae7090a0e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Offset of the top-left corner from the position. <a href="class_transformable.html#aa21dbaab5c9f7f5703d827ae7090a0e8">More...</a><br /></td></tr>
<tr class="separator:aa21dbaab5c9f7f5703d827ae7090a0e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a587fe840ddac456ba4e8caa5f00ddf0c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a587fe840ddac456ba4e8caa5f00ddf0c">scale</a></td></tr>
<tr class="memdesc:a587fe840ddac456ba4e8caa5f00ddf0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scale of the object. <a href="class_transformable.html#a587fe840ddac456ba4e8caa5f00ddf0c">More...</a><br /></td></tr>
<tr class="separator:a587fe840ddac456ba4e8caa5f00ddf0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a27de0d8dbb0e0bd0af4092ec7509c0"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a8a27de0d8dbb0e0bd0af4092ec7509c0">rotation</a></td></tr>
<tr class="memdesc:a8a27de0d8dbb0e0bd0af4092ec7509c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotation of the object (in degrees) <a href="class_transformable.html#a8a27de0d8dbb0e0bd0af4092ec7509c0">More...</a><br /></td></tr>
<tr class="separator:a8a27de0d8dbb0e0bd0af4092ec7509c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class that stores locational information. </p>
<p>Stores position, rotation, scale and the origin of an object, and provides functions to get/set those values. "Origin" is the offset between the position and the top-left corner of the object. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aaf42df1fbbc11ac758342a0cb26eb80a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf42df1fbbc11ac758342a0cb26eb80a">&#9670;&nbsp;</a></span>Transformable()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Transformable::Transformable </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Default constructur. </p>
</div>
</div>
<a id="ab8eae21f70d709159d849a2966c24412"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8eae21f70d709159d849a2966c24412">&#9670;&nbsp;</a></span>~Transformable()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual Transformable::~Transformable </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Deconstructor. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab45027854676ecff39b45f7b1bb8db45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab45027854676ecff39b45f7b1bb8db45">&#9670;&nbsp;</a></span>GetOrigin()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> Transformable::GetOrigin </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the current local origin. </p>
<dl class="section return"><dt>Returns</dt><dd>A 2D vector with the offset </dd></dl>
</div>
</div>
<a id="a49f770487198dc60ab7bdfc131778a66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49f770487198dc60ab7bdfc131778a66">&#9670;&nbsp;</a></span>GetPosition()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> Transformable::GetPosition </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the position of the object. </p>
<dl class="section return"><dt>Returns</dt><dd>A 2D vector of the position </dd></dl>
</div>
</div>
<a id="a2072c3a7060c9867ce887b937fcc92ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2072c3a7060c9867ce887b937fcc92ae">&#9670;&nbsp;</a></span>GetRotation()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float Transformable::GetRotation </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the current rotation. </p>
<dl class="section return"><dt>Returns</dt><dd>The rotation in degrees </dd></dl>
</div>
</div>
<a id="a5bd1f0833826cc91cddbb630f4d2ea00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bd1f0833826cc91cddbb630f4d2ea00">&#9670;&nbsp;</a></span>GetScale()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> Transformable::GetScale </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the current scale of the object. </p>
<dl class="section return"><dt>Returns</dt><dd>A 2D vector with the scale in x- and y-direction </dd></dl>
</div>
</div>
<a id="a32758b5ffec2466bdd6824d314bc7cbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32758b5ffec2466bdd6824d314bc7cbd">&#9670;&nbsp;</a></span>Move() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::Move </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;&#160;</td>
<td class="paramname"><em>position</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds to the current position. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">position</td><td>A 2D movement vector </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a19db1bbc145ea631f8caa16ddcf852bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19db1bbc145ea631f8caa16ddcf852bf">&#9670;&nbsp;</a></span>Move() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::Move </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>y</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds to the current position. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The offset in x direction </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The offset in y direction </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ab4c7bb0f85cc1670f4c13d89f09b5938"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4c7bb0f85cc1670f4c13d89f09b5938">&#9670;&nbsp;</a></span>Rotate()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::Rotate </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>angle</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Rotates by some amount. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">angle</td><td>The angle to rotate by in degrees </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a0ef8796a3ca3ad79b22be5ef59cd4c3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ef8796a3ca3ad79b22be5ef59cd4c3a">&#9670;&nbsp;</a></span>Scale() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::Scale </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;&#160;</td>
<td class="paramname"><em>scale</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Scales the object by some amount. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>The amount to scale by in x- and y-direction </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a7f823978c527cdca2ce5667926aa7ce2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f823978c527cdca2ce5667926aa7ce2">&#9670;&nbsp;</a></span>Scale() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::Scale </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>y</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Scales the object by some amount. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The amount to scale by in x direction </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The amount to scale by in y direction </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a0a4764e72329b3120812569e8d35c109"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a4764e72329b3120812569e8d35c109">&#9670;&nbsp;</a></span>SetOrigin() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::SetOrigin </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;&#160;</td>
<td class="paramname"><em>origin</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a new local origin. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">origin</td><td>A 2D vector with the new origin </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a6f1cb1413a0b26398b35aa0c9e6c5bc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f1cb1413a0b26398b35aa0c9e6c5bc8">&#9670;&nbsp;</a></span>SetOrigin() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::SetOrigin </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>y</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a new local origin. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The new x component of the origin </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The new y component of the origin </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a0dff4cf64143f46e2740da16e8b588bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0dff4cf64143f46e2740da16e8b588bf">&#9670;&nbsp;</a></span>SetPosition() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::SetPosition </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;&#160;</td>
<td class="paramname"><em>position</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a new position. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">position</td><td>A 2D vector with the new position </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a10235cf98c74ee27ed5eb57d440e02e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10235cf98c74ee27ed5eb57d440e02e2">&#9670;&nbsp;</a></span>SetPosition() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::SetPosition </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>y</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a new position. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The new x position </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The new y position </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a6644393bb743781a7745071c307cb481"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6644393bb743781a7745071c307cb481">&#9670;&nbsp;</a></span>SetRotation()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::SetRotation </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>angle</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a new rotation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">angle</td><td>The new rotation in degrees </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a6dfad28c0725d65023164580dbe40eec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dfad28c0725d65023164580dbe40eec">&#9670;&nbsp;</a></span>SetScale() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::SetScale </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &amp;&#160;</td>
<td class="paramname"><em>scale</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a new scale. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>A 2D vector with the new scale </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a7eaf9ee1d0110fb92e4643ca856e4e18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7eaf9ee1d0110fb92e4643ca856e4e18">&#9670;&nbsp;</a></span>SetScale() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Transformable::SetScale </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>y</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a new scale. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The new scale in x direction </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The new scale in y direction </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aa21dbaab5c9f7f5703d827ae7090a0e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa21dbaab5c9f7f5703d827ae7090a0e8">&#9670;&nbsp;</a></span>origin</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> Transformable::origin</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Offset of the top-left corner from the position. </p>
</div>
</div>
<a id="a1f58c94a72ecab9cca66287f8ac7b20f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f58c94a72ecab9cca66287f8ac7b20f">&#9670;&nbsp;</a></span>position</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> Transformable::position</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Position of the object. </p>
</div>
</div>
<a id="a8a27de0d8dbb0e0bd0af4092ec7509c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a27de0d8dbb0e0bd0af4092ec7509c0">&#9670;&nbsp;</a></span>rotation</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">float Transformable::rotation</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Rotation of the object (in degrees) </p>
</div>
</div>
<a id="a587fe840ddac456ba4e8caa5f00ddf0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a587fe840ddac456ba4e8caa5f00ddf0c">&#9670;&nbsp;</a></span>scale</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> Transformable::scale</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Scale of the object. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>C:/Users/Robert/source/repos/SDLU/include/graphics/drawable/<a class="el" href="_transformable_8hpp_source.html">Transformable.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="class_transformable.html">Transformable</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>