137 lines
39 KiB
HTML
137 lines
39 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.14"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>PxMeshScale.h Source File</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>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(initResizable);
|
|
/* @license-end */</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="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.14 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</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&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('PxMeshScale_8h_source.html','');});
|
|
/* @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="headertitle">
|
|
<div class="title">PxMeshScale.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="PxMeshScale_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved. </span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#ifndef PX_PHYSICS_NX_MESHSCALE</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#define PX_PHYSICS_NX_MESHSCALE</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="PxPhysXCommonConfig_8h.html">common/PxPhysXCommonConfig.h</a>"</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "<a class="code" href="PxMat33_8h.html">foundation/PxMat33.h</a>"</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include "<a class="code" href="PxAssert_8h.html">foundation/PxAssert.h</a>"</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="group__geomutils.html#ga5be09a494ce1f8aa8e8b986e82fc06d8"> 43</a></span> <span class="preprocessor">#define PX_MESH_SCALE_MIN 1e-6f</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="group__geomutils.html#gaaaa6a4b8b94e1bcce0bedb92d873b57e"> 47</a></span> <span class="preprocessor">#define PX_MESH_SCALE_MAX 1e6f</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classPxMeshScale.html"> 68</a></span> <span class="keyword">class </span><a class="code" href="classPxMeshScale.html">PxMeshScale</a></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment">//= ATTENTION! =====================================================================================</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// Changing the data layout of this class breaks the binary serialization format. See comments for </span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment">// PX_BINARY_SERIAL_VERSION. If a modification is required, please adjust the getBinaryMetaData </span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment">// function. If the modification is made on a custom branch, please change PX_BINARY_SERIAL_VERSION</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment">// accordingly.</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment">//==================================================================================================</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#ae61dcd43ff73b52319a187e029906657"> 80</a></span>  <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxMeshScale.html#ae61dcd43ff73b52319a187e029906657">PxMeshScale</a>(): scale(1.0f), rotation(<a class="code" href="group__foundation.html#gga70160ca5bbafef277790b3e0f12baf38a95e14c69af8048aedd218cd6e96ad50f">PxIdentity</a>) </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  {</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a073dcde32362dd33ba16db1375d32ded"> 87</a></span>  <span class="keyword">explicit</span> <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxMeshScale.html#a073dcde32362dd33ba16db1375d32ded">PxMeshScale</a>(<a class="code" href="namespacephysx.html#a727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> r): scale(r), rotation(<a class="code" href="group__foundation.html#gga70160ca5bbafef277790b3e0f12baf38a95e14c69af8048aedd218cd6e96ad50f">PxIdentity</a>) </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  {</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a861aff2d78563d1e844d5cb6a34057c6"> 94</a></span>  <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxMeshScale.html#a861aff2d78563d1e844d5cb6a34057c6">PxMeshScale</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>& s)</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  scale = s;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  rotation = <a class="code" href="classPxQuat.html">PxQuat</a>(<a class="code" href="group__foundation.html#gga70160ca5bbafef277790b3e0f12baf38a95e14c69af8048aedd218cd6e96ad50f">PxIdentity</a>);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  }</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a5187c2f3e63fea4fc8913630429779c3"> 103</a></span>  <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxMeshScale.html#a5187c2f3e63fea4fc8913630429779c3">PxMeshScale</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>& s, <span class="keyword">const</span> <a class="code" href="classPxQuat.html">PxQuat</a>& r)</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(r.<a class="code" href="classPxQuat.html#a35ac53818eeab314fc2888542b969544">isUnit</a>());</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  scale = s;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  rotation = r;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a6c9d8387789d61ff39b78910cdeeaf47"> 114</a></span>  <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="classPxMeshScale.html#a6c9d8387789d61ff39b78910cdeeaf47">isIdentity</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">return</span> (scale.x == 1.0f && scale.y == 1.0f && scale.z == 1.0f);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a549f48d36872b78303ed3c5885892e2a"> 122</a></span>  <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxMeshScale.html">PxMeshScale</a> <a class="code" href="classPxMeshScale.html#a549f48d36872b78303ed3c5885892e2a">getInverse</a>()<span class="keyword"> const </span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> <a class="code" href="classPxMeshScale.html">PxMeshScale</a>(<a class="code" href="classPxVec3.html">PxVec3</a>(1.0f/scale.x, 1.0f/scale.y, 1.0f/scale.z), rotation);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a48e9448ac3a1b20f16b23d226286930b"> 130</a></span>  <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxMat33.html">PxMat33</a> <a class="code" href="classPxMeshScale.html#a48e9448ac3a1b20f16b23d226286930b">toMat33</a>()<span class="keyword"> const </span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classPxMat33.html">PxMat33</a> rot(rotation);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="classPxMat33.html">PxMat33</a> trans = rot.<a class="code" href="classPxMat33.html#a03af319e25574c59fb66ceb675bb6b56">getTranspose</a>();</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  trans.<a class="code" href="classPxMat33.html#a89d12d4e50ffc5ef8e480bdd3dadb78a">column0</a> *= scale[0];</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  trans.<a class="code" href="classPxMat33.html#a62f190479e12e7b9ec5cf831b23c95e9">column1</a> *= scale[1];</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  trans.<a class="code" href="classPxMat33.html#a9af2a3d4f9cca979c3e46a6406de6957">column2</a> *= scale[2];</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">return</span> trans * rot;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  }</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a4eb75b946d25a2f78719cf1a752b9625"> 143</a></span>  <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="classPxMeshScale.html#a4eb75b946d25a2f78719cf1a752b9625">hasNegativeDeterminant</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span> (scale.x * scale.y * scale.z < 0.0f);</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a0c82479cb5c6700dfb3216550622cc2b"> 148</a></span>  <a class="code" href="classPxVec3.html">PxVec3</a> <a class="code" href="classPxMeshScale.html#a0c82479cb5c6700dfb3216550622cc2b">transform</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>& v)<span class="keyword"> const</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> rotation.rotateInv(scale.multiply(rotation.rotate(v)));</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a5dbd0f273ae6b3df0647f9d10bde5e84"> 153</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classPxMeshScale.html#a5dbd0f273ae6b3df0647f9d10bde5e84">isValidForTriangleMesh</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="classPxVec3.html">PxVec3</a> absXYZ = scale.<a class="code" href="classPxVec3.html#ab070b1c2dc2d5f67f2720d12e68f6444">abs</a>();</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">return</span> (absXYZ.<a class="code" href="classPxVec3.html#a6f3aea43222cb8f0ec3392a3f56939a8">maxElement</a>() <= <a class="code" href="group__geomutils.html#gaaaa6a4b8b94e1bcce0bedb92d873b57e">PX_MESH_SCALE_MAX</a>) && (absXYZ.<a class="code" href="classPxVec3.html#a1eca04383969d7e166ce556bf32197c1">minElement</a>() >= <a class="code" href="group__geomutils.html#ga5be09a494ce1f8aa8e8b986e82fc06d8">PX_MESH_SCALE_MIN</a>);</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  }</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#aa02b575786ff1105637a9c99e95519e0"> 159</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classPxMeshScale.html#aa02b575786ff1105637a9c99e95519e0">isValidForConvexMesh</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">return</span> (scale.maxElement() <= <a class="code" href="group__geomutils.html#gaaaa6a4b8b94e1bcce0bedb92d873b57e">PX_MESH_SCALE_MAX</a>) && (scale.minElement() >= <a class="code" href="group__geomutils.html#ga5be09a494ce1f8aa8e8b986e82fc06d8">PX_MESH_SCALE_MIN</a>);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  }</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a12f2dbcf5214c4c5956dab0e75831449"> 164</a></span>  <a class="code" href="classPxVec3.html">PxVec3</a> <a class="code" href="classPxMeshScale.html#a12f2dbcf5214c4c5956dab0e75831449">scale</a>; </div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classPxMeshScale.html#a63902c04c9a3f326b5f969fa931e53fd"> 165</a></span>  <a class="code" href="classPxQuat.html">PxQuat</a> <a class="code" href="classPxMeshScale.html#a63902c04c9a3f326b5f969fa931e53fd">rotation</a>; </div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> };</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> } <span class="comment">// namespace physx</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
|
|
<div class="ttc" id="classPxVec3_html_a6f3aea43222cb8f0ec3392a3f56939a8"><div class="ttname"><a href="classPxVec3.html#a6f3aea43222cb8f0ec3392a3f56939a8">PxVec3::maxElement</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float maxElement() const</div><div class="ttdoc">returns MAX(x, y, z); </div><div class="ttdef"><b>Definition:</b> PxVec3.h:368</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a073dcde32362dd33ba16db1375d32ded"><div class="ttname"><a href="classPxMeshScale.html#a073dcde32362dd33ba16db1375d32ded">PxMeshScale::PxMeshScale</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxMeshScale(PxReal r)</div><div class="ttdoc">Constructor from scalar. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:87</div></div>
|
|
<div class="ttc" id="group__geomutils_html_ga5be09a494ce1f8aa8e8b986e82fc06d8"><div class="ttname"><a href="group__geomutils.html#ga5be09a494ce1f8aa8e8b986e82fc06d8">PX_MESH_SCALE_MIN</a></div><div class="ttdeci">#define PX_MESH_SCALE_MIN</div><div class="ttdoc">Minimum allowed absolute magnitude for each of mesh scale&#39;s components (x,y,z). </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:43</div></div>
|
|
<div class="ttc" id="group__foundation_html_gga70160ca5bbafef277790b3e0f12baf38a95e14c69af8048aedd218cd6e96ad50f"><div class="ttname"><a href="group__foundation.html#gga70160ca5bbafef277790b3e0f12baf38a95e14c69af8048aedd218cd6e96ad50f">PxIdentity</a></div><div class="ttdef"><b>Definition:</b> Px.h:84</div></div>
|
|
<div class="ttc" id="PxPhysXCommonConfig_8h_html"><div class="ttname"><a href="PxPhysXCommonConfig_8h.html">PxPhysXCommonConfig.h</a></div></div>
|
|
<div class="ttc" id="classPxMeshScale_html"><div class="ttname"><a href="classPxMeshScale.html">PxMeshScale</a></div><div class="ttdoc">A class expressing a nonuniform scaling transformation. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:68</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a861aff2d78563d1e844d5cb6a34057c6"><div class="ttname"><a href="classPxMeshScale.html#a861aff2d78563d1e844d5cb6a34057c6">PxMeshScale::PxMeshScale</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxMeshScale(const PxVec3 &s)</div><div class="ttdoc">Constructor to initialize to arbitrary scale and identity scale rotation. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:94</div></div>
|
|
<div class="ttc" id="group__foundation_html_ga6a774eed3cad34b0f636332a3d28c6bb"><div class="ttname"><a href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a></div><div class="ttdeci">#define PX_FORCE_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:351</div></div>
|
|
<div class="ttc" id="classPxQuat_html"><div class="ttname"><a href="classPxQuat.html">PxQuat</a></div><div class="ttdoc">This is a quaternion class. For more information on quaternion mathematics consult a mathematics sour...</div><div class="ttdef"><b>Definition:</b> PxQuat.h:49</div></div>
|
|
<div class="ttc" id="namespacephysx_html_a727d2d8426e2a21ebbc522fa65c3f97a"><div class="ttname"><a href="namespacephysx.html#a727d2d8426e2a21ebbc522fa65c3f97a">physx::PxReal</a></div><div class="ttdeci">float PxReal</div><div class="ttdef"><b>Definition:</b> PxSimpleTypes.h:78</div></div>
|
|
<div class="ttc" id="group__geomutils_html_gaaaa6a4b8b94e1bcce0bedb92d873b57e"><div class="ttname"><a href="group__geomutils.html#gaaaa6a4b8b94e1bcce0bedb92d873b57e">PX_MESH_SCALE_MAX</a></div><div class="ttdeci">#define PX_MESH_SCALE_MAX</div><div class="ttdoc">Maximum allowed absolute magnitude for each of mesh scale&#39;s components (x,y,z). </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:47</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a5dbd0f273ae6b3df0647f9d10bde5e84"><div class="ttname"><a href="classPxMeshScale.html#a5dbd0f273ae6b3df0647f9d10bde5e84">PxMeshScale::isValidForTriangleMesh</a></div><div class="ttdeci">bool isValidForTriangleMesh() const</div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:153</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a63902c04c9a3f326b5f969fa931e53fd"><div class="ttname"><a href="classPxMeshScale.html#a63902c04c9a3f326b5f969fa931e53fd">PxMeshScale::rotation</a></div><div class="ttdeci">PxQuat rotation</div><div class="ttdoc">The orientation of the scaling axes. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:165</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a549f48d36872b78303ed3c5885892e2a"><div class="ttname"><a href="classPxMeshScale.html#a549f48d36872b78303ed3c5885892e2a">PxMeshScale::getInverse</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxMeshScale getInverse() const</div><div class="ttdoc">Returns the inverse of this scaling transformation. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:122</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a12f2dbcf5214c4c5956dab0e75831449"><div class="ttname"><a href="classPxMeshScale.html#a12f2dbcf5214c4c5956dab0e75831449">PxMeshScale::scale</a></div><div class="ttdeci">PxVec3 scale</div><div class="ttdoc">A nonuniform scaling. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:164</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a6c9d8387789d61ff39b78910cdeeaf47"><div class="ttname"><a href="classPxMeshScale.html#a6c9d8387789d61ff39b78910cdeeaf47">PxMeshScale::isIdentity</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE bool isIdentity() const</div><div class="ttdoc">Returns true if the scaling is an identity transformation. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:114</div></div>
|
|
<div class="ttc" id="PxAssert_8h_html"><div class="ttname"><a href="PxAssert_8h.html">PxAssert.h</a></div></div>
|
|
<div class="ttc" id="classPxVec3_html_a1eca04383969d7e166ce556bf32197c1"><div class="ttname"><a href="classPxVec3.html#a1eca04383969d7e166ce556bf32197c1">PxVec3::minElement</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float minElement() const</div><div class="ttdoc">returns MIN(x, y, z); </div><div class="ttdef"><b>Definition:</b> PxVec3.h:352</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_aa02b575786ff1105637a9c99e95519e0"><div class="ttname"><a href="classPxMeshScale.html#aa02b575786ff1105637a9c99e95519e0">PxMeshScale::isValidForConvexMesh</a></div><div class="ttdeci">bool isValidForConvexMesh() const</div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:159</div></div>
|
|
<div class="ttc" id="classPxQuat_html_a35ac53818eeab314fc2888542b969544"><div class="ttname"><a href="classPxQuat.html#a35ac53818eeab314fc2888542b969544">PxQuat::isUnit</a></div><div class="ttdeci">PX_CUDA_CALLABLE bool isUnit() const</div><div class="ttdoc">returns true if finite and magnitude is close to unit </div><div class="ttdef"><b>Definition:</b> PxQuat.h:132</div></div>
|
|
<div class="ttc" id="classPxMat33_html_a9af2a3d4f9cca979c3e46a6406de6957"><div class="ttname"><a href="classPxMat33.html#a9af2a3d4f9cca979c3e46a6406de6957">PxMat33::column2</a></div><div class="ttdeci">PxVec3 column2</div><div class="ttdef"><b>Definition:</b> PxMat33.h:353</div></div>
|
|
<div class="ttc" id="classPxMat33_html"><div class="ttname"><a href="classPxMat33.html">PxMat33</a></div><div class="ttdoc">3x3 matrix class </div><div class="ttdef"><b>Definition:</b> PxMat33.h:90</div></div>
|
|
<div class="ttc" id="classPxMat33_html_a89d12d4e50ffc5ef8e480bdd3dadb78a"><div class="ttname"><a href="classPxMat33.html#a89d12d4e50ffc5ef8e480bdd3dadb78a">PxMat33::column0</a></div><div class="ttdeci">PxVec3 column0</div><div class="ttdef"><b>Definition:</b> PxMat33.h:353</div></div>
|
|
<div class="ttc" id="classPxVec3_html_ab070b1c2dc2d5f67f2720d12e68f6444"><div class="ttname"><a href="classPxVec3.html#ab070b1c2dc2d5f67f2720d12e68f6444">PxVec3::abs</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 abs() const</div><div class="ttdoc">returns absolute values of components; </div><div class="ttdef"><b>Definition:</b> PxVec3.h:376</div></div>
|
|
<div class="ttc" id="PxMat33_8h_html"><div class="ttname"><a href="PxMat33_8h.html">PxMat33.h</a></div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a5187c2f3e63fea4fc8913630429779c3"><div class="ttname"><a href="classPxMeshScale.html#a5187c2f3e63fea4fc8913630429779c3">PxMeshScale::PxMeshScale</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxMeshScale(const PxVec3 &s, const PxQuat &r)</div><div class="ttdoc">Constructor to initialize to arbitrary scaling. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:103</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_ae61dcd43ff73b52319a187e029906657"><div class="ttname"><a href="classPxMeshScale.html#ae61dcd43ff73b52319a187e029906657">PxMeshScale::PxMeshScale</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxMeshScale()</div><div class="ttdoc">Constructor initializes to identity scale. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:80</div></div>
|
|
<div class="ttc" id="group__foundation_html_ga4a83a657390b324a460f14684e5accee"><div class="ttname"><a href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a></div><div class="ttdeci">#define PX_ASSERT(exp)</div><div class="ttdef"><b>Definition:</b> PxAssert.h:59</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a4eb75b946d25a2f78719cf1a752b9625"><div class="ttname"><a href="classPxMeshScale.html#a4eb75b946d25a2f78719cf1a752b9625">PxMeshScale::hasNegativeDeterminant</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE bool hasNegativeDeterminant() const</div><div class="ttdoc">Returns true if combination of negative scale components will cause the triangle normal to flip...</div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:143</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a0c82479cb5c6700dfb3216550622cc2b"><div class="ttname"><a href="classPxMeshScale.html#a0c82479cb5c6700dfb3216550622cc2b">PxMeshScale::transform</a></div><div class="ttdeci">PxVec3 transform(const PxVec3 &v) const</div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:148</div></div>
|
|
<div class="ttc" id="classPxMat33_html_a03af319e25574c59fb66ceb675bb6b56"><div class="ttname"><a href="classPxMat33.html#a03af319e25574c59fb66ceb675bb6b56">PxMat33::getTranspose</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE const PxMat33 getTranspose() const</div><div class="ttdoc">Get transposed matrix. </div><div class="ttdef"><b>Definition:</b> PxMat33.h:190</div></div>
|
|
<div class="ttc" id="classPxMeshScale_html_a48e9448ac3a1b20f16b23d226286930b"><div class="ttname"><a href="classPxMeshScale.html#a48e9448ac3a1b20f16b23d226286930b">PxMeshScale::toMat33</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxMat33 toMat33() const</div><div class="ttdoc">Converts this transformation to a 3x3 matrix representation. </div><div class="ttdef"><b>Definition:</b> PxMeshScale.h:130</div></div>
|
|
<div class="ttc" id="classPxMat33_html_a62f190479e12e7b9ec5cf831b23c95e9"><div class="ttname"><a href="classPxMat33.html#a62f190479e12e7b9ec5cf831b23c95e9">PxMat33::column1</a></div><div class="ttdeci">PxVec3 column1</div><div class="ttdef"><b>Definition:</b> PxMat33.h:353</div></div>
|
|
<div class="ttc" id="group__foundation_html_ga6e444d58dbf1459261fadc9b79594f63"><div class="ttname"><a href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a></div><div class="ttdeci">#define PX_CUDA_CALLABLE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:460</div></div>
|
|
<div class="ttc" id="classPxVec3_html"><div class="ttname"><a href="classPxVec3.html">PxVec3</a></div><div class="ttdoc">3 Element vector class. </div><div class="ttdef"><b>Definition:</b> PxVec3.h:49</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- HTML footer for doxygen 1.8.14-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_713b4d6d20ce249967929ad234a3da6e.html">include</a></li><li class="navelem"><a class="el" href="dir_e1ab1c2afe6edf020a20ecbe699cc903.html">geometry</a></li><li class="navelem"><a class="el" href="PxMeshScale_8h.html">PxMeshScale.h</a></li>
|
|
<li class="footer">Copyright © 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|