<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.
01 Transitional//EN"
"[Link]
<html>
<!-- Mirrored from
[Link]/docs/2.1a/reference/Box2D/Collision/[Link] by
HTTrack Website Copier/3.x [XR&CO'2014], Sun, 13 May 2018 06:35:01 GMT -->
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../[Link]" type="text/css" media="screen">
<link rel="stylesheet" href="../../[Link]" type="text/css" media="print">
<meta
content="b2DistanceProxy,[Link].b2DistanceProxy,m_count,m_radius,m_vertice
s,GetSupport,GetSupportVertex,GetVertex,GetVertexCount,Set" name="keywords">
<title>[Link].b2DistanceProxy</title>
</head>
<body>
<script type="text/javascript" language="javascript"
src="../../[Link]"></script><script type="text/javascript" language="javascript"
src="../../[Link]"></script><script type="text/javascript"
language="javascript">
<!--
asdocTitle = 'b2DistanceProxy - Box2DFlash Documentation';
var baseRef = '../../[Link]';
[Link] = configPage;
--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0"
class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Box2DFlash Documentation</td><td
align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-
[Link]')" href="../../[Link]">All Packages</a> |
<a onclick="loadClassListFrame('../../[Link]')" href="../../class-
[Link]">All Classes</a> | <a
onclick="loadClassListFrame('../../[Link]')" href="../../all-index-
[Link]">Index</a> | <a
href="../../[Link]?Box2D/Collision/[Link]&Box2D/
Collision/[Link]" id="framesLink1">Frames</a><a
onclick="[Link]=[Link]" href="#" style="display:none"
id="noFramesLink1">No Frames</a></td><td rowspan="3" align="right"
class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage"
src="../../images/[Link]"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle"
class="titleTableSubTitle">Class b2DistanceProxy</td><td align="right"
id="subNav" class="titleTableSubNav"><a
href="#propertySummary">Properties</a> | <a
href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2"> </td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || [Link] != ECLIPSE_FRAME_NAME)
{titleBar_setSubTitle("Class b2DistanceProxy");
titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,
false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a
onclick="javascript:loadClassListFrame('[Link]')" href="package-
[Link]">[Link]</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class
b2DistanceProxy</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Source</td><td><a
href="[Link]
Collision/[Link]">[Link]</a></td>
</tr>
</table>
<p></p>
A distance proxy is used by the GJK algorithm.
It encapsulates any shape.
<p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3"
cellspacing="0">
<tr>
<th> </th><th colspan="2">Property</th><th
class="summaryTableOwnerCol">Defined by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol"> </td><td
class="summaryTableInheritanceCol"> </td><td
class="summaryTableSignatureCol"><a class="signatureLink"
href="#m_count">m_count</a> : int<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">b2DistanceProxy</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol"> </td><td
class="summaryTableInheritanceCol"> </td><td
class="summaryTableSignatureCol"><a class="signatureLink"
href="#m_radius">m_radius</a> : Number<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">b2DistanceProxy</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol"> </td><td
class="summaryTableInheritanceCol"> </td><td
class="summaryTableSignatureCol"><a class="signatureLink"
href="#m_vertices">m_vertices</a> : Vector<div
class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">b2DistanceProxy</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3"
cellspacing="0">
<tr>
<th> </th><th colspan="2">Method</th><th
class="summaryTableOwnerCol">Defined by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol"> </td><td
class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#GetSupport()">GetSupport</a>(d:<a
href="../Common/Math/[Link]">b2Vec2</a>):Number</div>
<div class="summaryTableDescription">
Get the supporting vertex index in the given direction.</div>
</td><td class="summaryTableOwnerCol">b2DistanceProxy</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol"> </td><td
class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#GetSupportVertex()">GetSupportVertex</a>(d:<a
href="../Common/Math/[Link]">b2Vec2</a>):<a
href="../Common/Math/[Link]">b2Vec2</a>
</div>
<div class="summaryTableDescription">
Get the supporting vertex in the given direction.</div>
</td><td class="summaryTableOwnerCol">b2DistanceProxy</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol"> </td><td
class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#GetVertex()">GetVertex</a>(index:int):<a
href="../Common/Math/[Link]">b2Vec2</a>
</div>
<div class="summaryTableDescription">
Get a vertex by index.</div>
</td><td class="summaryTableOwnerCol">b2DistanceProxy</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol"> </td><td
class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#GetVertexCount()">GetVertexCount</a>():int</div>
<div class="summaryTableDescription">
Get the vertex count.</div>
</td><td class="summaryTableOwnerCol">b2DistanceProxy</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol"> </td><td
class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#Set()">Set</a>(shape:<a
href="Shapes/[Link]">b2Shape</a>):void</div>
<div class="summaryTableDescription">
Initialize the proxy using the given shape.</div>
</td><td class="summaryTableOwnerCol">b2DistanceProxy</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="m_count"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">m_count</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public var m_count:int</code>
</div>
<a name="m_radius"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">m_radius</td><td
class="detailHeaderType">property</td><td class="detailHeaderRule"> </td>
</tr>
</table>
<div class="detailBody">
<code>public var m_radius:Number</code>
</div>
<a name="m_vertices"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">m_vertices</td><td
class="detailHeaderType">property</td><td class="detailHeaderRule"> </td>
</tr>
</table>
<div class="detailBody">
<code>public var m_vertices:Vector</code>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="GetSupport()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">GetSupport</td><td
class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function GetSupport(d:<a
href="../Common/Math/[Link]">b2Vec2</a>):Number</code><p>
Get the supporting vertex index in the given direction.
</p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">d</span>:<a
href="../Common/Math/[Link]">b2Vec2</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Number</code></td>
</tr>
</table>
</div>
<a name="GetSupportVertex()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">GetSupportVertex</td><td
class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td
class="detailHeaderRule"> </td>
</tr>
</table>
<div class="detailBody">
<code>public function GetSupportVertex(d:<a
href="../Common/Math/[Link]">b2Vec2</a>):<a
href="../Common/Math/[Link]">b2Vec2</a></code><p>
Get the supporting vertex in the given direction.
</p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">d</span>:<a
href="../Common/Math/[Link]">b2Vec2</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a
href="../Common/Math/[Link]">b2Vec2</a></code></td>
</tr>
</table>
</div>
<a name="GetVertex()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">GetVertex</td><td
class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td
class="detailHeaderRule"> </td>
</tr>
</table>
<div class="detailBody">
<code>public function GetVertex(index:int):<a
href="../Common/Math/[Link]">b2Vec2</a></code><p>
Get a vertex by index. Used by b2Distance.
</p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">index</span>:int</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a
href="../Common/Math/[Link]">b2Vec2</a></code></td>
</tr>
</table>
</div>
<a name="GetVertexCount()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">GetVertexCount</td><td
class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td
class="detailHeaderRule"> </td>
</tr>
</table>
<div class="detailBody">
<code>public function GetVertexCount():int</code><p>
Get the vertex count.
</p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>int</code></td>
</tr>
</table>
</div>
<a name="Set()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Set</td><td class="detailHeaderParens">()</td><td
class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
</tr>
</table>
<div class="detailBody">
<code>public function Set(shape:<a
href="Shapes/[Link]">b2Shape</a>):void</code><p>
Initialize the proxy using the given shape. The shape
must remain in scope while the proxy is in use.
</p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">shape</span>:<a
href="Shapes/[Link]">b2Shape</a></code></td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">Box2DFlash 2.1a</center>
</div>
</body>
<!-- Mirrored from
[Link]/docs/2.1a/reference/Box2D/Collision/[Link] by
HTTrack Website Copier/3.x [XR&CO'2014], Sun, 13 May 2018 06:35:02 GMT -->
</html>
<!--Box2DFlash 2.1a-->