新增doc
This commit is contained in:
@@ -0,0 +1,780 @@
|
||||
<!doctype html>
|
||||
<html class="default no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>ShapeCollisions | @esengine/egret-framework</title>
|
||||
<meta name="description" content="Documentation for @esengine/egret-framework">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../assets/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="tsd-page-toolbar">
|
||||
<div class="container">
|
||||
<div class="table-wrap">
|
||||
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
||||
<div class="field">
|
||||
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
||||
<input id="tsd-search-field" type="text" />
|
||||
</div>
|
||||
<ul class="results">
|
||||
<li class="state loading">Preparing search index...</li>
|
||||
<li class="state failure">The search index is not available</li>
|
||||
</ul>
|
||||
<a href="../index.html" class="title">@esengine/egret-framework</a>
|
||||
</div>
|
||||
<div class="table-cell" id="tsd-widgets">
|
||||
<div id="tsd-filter">
|
||||
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
||||
<div class="tsd-filter-group">
|
||||
<div class="tsd-select" id="tsd-filter-visibility">
|
||||
<span class="tsd-select-label">All</span>
|
||||
<ul class="tsd-select-list">
|
||||
<li data-value="public">Public</li>
|
||||
<li data-value="protected">Public/Protected</li>
|
||||
<li data-value="private" class="selected">All</li>
|
||||
</ul>
|
||||
</div>
|
||||
<input type="checkbox" id="tsd-filter-inherited" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
||||
<input type="checkbox" id="tsd-filter-externals" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
||||
<input type="checkbox" id="tsd-filter-only-exported" />
|
||||
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tsd-page-title">
|
||||
<div class="container">
|
||||
<ul class="tsd-breadcrumb">
|
||||
<li>
|
||||
<a href="../globals.html">Globals</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../modules/_physics_shapes_shapecollisions_shapecollisions_.html">"Physics/Shapes/ShapeCollisions/ShapeCollisions"</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../modules/_physics_shapes_shapecollisions_shapecollisions_.es.html">es</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html">ShapeCollisions</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>Class ShapeCollisions</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container container-main">
|
||||
<div class="row">
|
||||
<div class="col-8 col-content">
|
||||
<section class="tsd-panel tsd-comment">
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>各种形状的碰撞例程
|
||||
大多数人都希望第一个形状位于第二个形状的空间内(即shape1)
|
||||
pos应该设置为shape1。pos - shape2.pos)。</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-hierarchy">
|
||||
<h3>Hierarchy</h3>
|
||||
<ul class="tsd-hierarchy">
|
||||
<li>
|
||||
<span class="target">ShapeCollisions</span>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel-group tsd-index-group">
|
||||
<h2>Index</h2>
|
||||
<section class="tsd-panel tsd-index-panel">
|
||||
<div class="tsd-index-content">
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Methods</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#boxtobox" class="tsd-kind-icon">box<wbr>ToBox</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#boxtoboxcast" class="tsd-kind-icon">box<wbr>ToBox<wbr>Cast</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#circletobox" class="tsd-kind-icon">circle<wbr>ToBox</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#circletocircle" class="tsd-kind-icon">circle<wbr>ToCircle</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#circletopolygon" class="tsd-kind-icon">circle<wbr>ToPolygon</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#closestpointonline" class="tsd-kind-icon">closest<wbr>Point<wbr>OnLine</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#getinterval" class="tsd-kind-icon">get<wbr>Interval</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#intervaldistance" class="tsd-kind-icon">interval<wbr>Distance</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#linetocircle" class="tsd-kind-icon">line<wbr>ToCircle</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#linetoline" class="tsd-kind-icon">line<wbr>ToLine</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#linetopoly" class="tsd-kind-icon">line<wbr>ToPoly</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#minkowskidifference" class="tsd-kind-icon">minkowski<wbr>Difference</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#pointtobox" class="tsd-kind-icon">point<wbr>ToBox</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#pointtocircle" class="tsd-kind-icon">point<wbr>ToCircle</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#pointtopoly" class="tsd-kind-icon">point<wbr>ToPoly</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#polygontopolygon" class="tsd-kind-icon">polygon<wbr>ToPolygon</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section class="tsd-panel-group tsd-member-group ">
|
||||
<h2>Methods</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="boxtobox" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> box<wbr>ToBox</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">box<wbr>ToBox<span class="tsd-signature-symbol">(</span>first<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a>, second<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a>, result<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L288">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:288</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>first: <a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>second: <a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>result: <a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="boxtoboxcast" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> box<wbr>ToBox<wbr>Cast</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">box<wbr>ToBox<wbr>Cast<span class="tsd-signature-symbol">(</span>first<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a>, second<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a>, movement<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, hit<span class="tsd-signature-symbol">: </span><a href="_physics_raycasthit_.es.raycasthit.html" class="tsd-signature-type">RaycastHit</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L416">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:416</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>用second检查被deltaMovement移动的框的结果</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>first: <a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>second: <a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>movement: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>hit: <a href="_physics_raycasthit_.es.raycasthit.html" class="tsd-signature-type">RaycastHit</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="circletobox" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> circle<wbr>ToBox</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">circle<wbr>ToBox<span class="tsd-signature-symbol">(</span>circle<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a>, box<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a>, result<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L159">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:159</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>适用于圆心在方框内以及只与方框外圆心重叠的圆。</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>circle: <a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>box: <a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>result: <a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="circletocircle" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> circle<wbr>ToCircle</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">circle<wbr>ToCircle<span class="tsd-signature-symbol">(</span>first<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a>, second<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a>, result<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L266">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:266</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>first: <a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>second: <a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>result: <a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="circletopolygon" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> circle<wbr>ToPolygon</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">circle<wbr>ToPolygon<span class="tsd-signature-symbol">(</span>circle<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a>, polygon<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a>, result<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L125">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:125</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>circle: <a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>polygon: <a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>result: <a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="closestpointonline" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> closest<wbr>Point<wbr>OnLine</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">closest<wbr>Point<wbr>OnLine<span class="tsd-signature-symbol">(</span>lineA<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, lineB<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, closestTo<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L231">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:231</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>lineA: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>lineB: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>closestTo: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="getinterval" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Interval</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">get<wbr>Interval<span class="tsd-signature-symbol">(</span>axis<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, polygon<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a>, min<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, max<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>max<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>min<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L103">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:103</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>计算一个多边形在一个轴上的投影,并返回一个[min,max]区间</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>axis: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>polygon: <a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>min: <span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>max: <span class="tsd-signature-type">number</span></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span>max<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>min<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li class="tsd-parameter">
|
||||
<h5>max<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li class="tsd-parameter">
|
||||
<h5>min<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="intervaldistance" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> interval<wbr>Distance</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">interval<wbr>Distance<span class="tsd-signature-symbol">(</span>minA<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, maxA<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, minB<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, maxB<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L89">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:89</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>计算[minA, maxA]和[minB, maxB]之间的距离。如果间隔重叠,距离是负的</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>minA: <span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>maxA: <span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>minB: <span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>maxB: <span class="tsd-signature-type">any</span></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="linetocircle" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> line<wbr>ToCircle</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">line<wbr>ToCircle<span class="tsd-signature-symbol">(</span>start<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, end<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, s<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a>, hit<span class="tsd-signature-symbol">: </span><a href="_physics_raycasthit_.es.raycasthit.html" class="tsd-signature-type">RaycastHit</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L377">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:377</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>start: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>end: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>s: <a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>hit: <a href="_physics_raycasthit_.es.raycasthit.html" class="tsd-signature-type">RaycastHit</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="linetoline" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> line<wbr>ToLine</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">line<wbr>ToLine<span class="tsd-signature-symbol">(</span>a1<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, a2<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, b1<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, b2<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, intersection<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L354">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:354</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>a1: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>a2: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>b1: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>b2: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>intersection: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="linetopoly" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> line<wbr>ToPoly</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">line<wbr>ToPoly<span class="tsd-signature-symbol">(</span>start<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, end<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, polygon<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a>, hit<span class="tsd-signature-symbol">: </span><a href="_physics_raycasthit_.es.raycasthit.html" class="tsd-signature-type">RaycastHit</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L316">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:316</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>start: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>end: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>polygon: <a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>hit: <a href="_physics_raycasthit_.es.raycasthit.html" class="tsd-signature-type">RaycastHit</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
|
||||
<a name="minkowskidifference" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagPrivate">Private</span> minkowski<wbr>Difference</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">minkowski<wbr>Difference<span class="tsd-signature-symbol">(</span>first<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a>, second<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L306">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:306</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>first: <a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>second: <a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="pointtobox" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> point<wbr>ToBox</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">point<wbr>ToBox<span class="tsd-signature-symbol">(</span>point<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, box<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a>, result<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L213">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:213</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>point: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>box: <a href="_physics_shapes_box_.es.box.html" class="tsd-signature-type">Box</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>result: <a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="pointtocircle" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> point<wbr>ToCircle</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">point<wbr>ToCircle<span class="tsd-signature-symbol">(</span>point<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, circle<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a>, result<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L197">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:197</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>point: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>circle: <a href="_physics_shapes_circle_.es.circle.html" class="tsd-signature-type">Circle</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>result: <a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="pointtopoly" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> point<wbr>ToPoly</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">point<wbr>ToPoly<span class="tsd-signature-symbol">(</span>point<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, poly<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a>, result<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L246">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:246</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>point: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>poly: <a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>result: <a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a name="polygontopolygon" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> polygon<wbr>ToPolygon</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<li class="tsd-signature tsd-kind-icon">polygon<wbr>ToPolygon<span class="tsd-signature-symbol">(</span>first<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a>, second<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a>, result<span class="tsd-signature-symbol">: </span><a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts#L14">src/Physics/Shapes/ShapeCollisions/ShapeCollisions.ts:14</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>检查两个多边形之间的碰撞</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>first: <a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>second: <a href="_physics_shapes_polygon_.es.polygon.html" class="tsd-signature-type">Polygon</a></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>result: <a href="_physics_shapes_collisionresult_.es.collisionresult.html" class="tsd-signature-type">CollisionResult</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
||||
<nav class="tsd-navigation primary">
|
||||
<ul>
|
||||
<li class="globals ">
|
||||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-module">
|
||||
<a href="../modules/_physics_shapes_shapecollisions_shapecollisions_.html">"<wbr>Physics/<wbr>Shapes/<wbr>Shape<wbr>Collisions/<wbr>Shape<wbr>Collisions"</a>
|
||||
<ul>
|
||||
<li class="current tsd-kind-namespace tsd-parent-kind-module">
|
||||
<a href="../modules/_physics_shapes_shapecollisions_shapecollisions_.es.html">es</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
</ul>
|
||||
<ul class="current">
|
||||
<li class="current tsd-kind-class tsd-parent-kind-namespace">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html" class="tsd-kind-icon">Shape<wbr>Collisions</a>
|
||||
<ul>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#boxtobox" class="tsd-kind-icon">box<wbr>ToBox</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#boxtoboxcast" class="tsd-kind-icon">box<wbr>ToBox<wbr>Cast</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#circletobox" class="tsd-kind-icon">circle<wbr>ToBox</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#circletocircle" class="tsd-kind-icon">circle<wbr>ToCircle</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#circletopolygon" class="tsd-kind-icon">circle<wbr>ToPolygon</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#closestpointonline" class="tsd-kind-icon">closest<wbr>Point<wbr>OnLine</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#getinterval" class="tsd-kind-icon">get<wbr>Interval</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#intervaldistance" class="tsd-kind-icon">interval<wbr>Distance</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#linetocircle" class="tsd-kind-icon">line<wbr>ToCircle</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#linetoline" class="tsd-kind-icon">line<wbr>ToLine</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#linetopoly" class="tsd-kind-icon">line<wbr>ToPoly</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#minkowskidifference" class="tsd-kind-icon">minkowski<wbr>Difference</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#pointtobox" class="tsd-kind-icon">point<wbr>ToBox</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#pointtocircle" class="tsd-kind-icon">point<wbr>ToCircle</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#pointtopoly" class="tsd-kind-icon">point<wbr>ToPoly</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
||||
<a href="_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html#polygontopolygon" class="tsd-kind-icon">polygon<wbr>ToPolygon</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="after-current">
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="with-border-bottom">
|
||||
<div class="container">
|
||||
<h2>Legend</h2>
|
||||
<div class="tsd-legend-group">
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
|
||||
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<div class="container tsd-generator">
|
||||
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
||||
</div>
|
||||
<div class="overlay"></div>
|
||||
<script src="../assets/js/main.js"></script>
|
||||
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user