1982 lines
103 KiB
HTML
1982 lines
103 KiB
HTML
|
|
<!doctype html>
|
|||
|
|
<html class="default no-js">
|
|||
|
|
<head>
|
|||
|
|
<meta charset="utf-8">
|
|||
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|||
|
|
<title>Rectangle | @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/_math_rectangle_.html">"Math/Rectangle"</a>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<a href="../modules/_math_rectangle_.es.html">es</a>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html">Rectangle</a>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h1>Class Rectangle</h1>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</header>
|
|||
|
|
<div class="container container-main">
|
|||
|
|
<div class="row">
|
|||
|
|
<div class="col-8 col-content">
|
|||
|
|
<section class="tsd-panel tsd-hierarchy">
|
|||
|
|
<h3>Hierarchy</h3>
|
|||
|
|
<ul class="tsd-hierarchy">
|
|||
|
|
<li>
|
|||
|
|
<span class="tsd-signature-type">Rectangle</span>
|
|||
|
|
<ul class="tsd-hierarchy">
|
|||
|
|
<li>
|
|||
|
|
<span class="target">Rectangle</span>
|
|||
|
|
<ul class="tsd-hierarchy">
|
|||
|
|
<li>
|
|||
|
|
<a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel">
|
|||
|
|
<h3>Implements</h3>
|
|||
|
|
<ul class="tsd-hierarchy">
|
|||
|
|
<li><span class="tsd-signature-type">IHashObject</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 tsd-is-inherited">
|
|||
|
|
<h3>Constructors</h3>
|
|||
|
|
<ul class="tsd-index-list">
|
|||
|
|
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-index-section ">
|
|||
|
|
<h3>Properties</h3>
|
|||
|
|
<ul class="tsd-index-list">
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-private"><a href="_math_rectangle_.es.rectangle.html#_hashcode" class="tsd-kind-icon">$hash<wbr>Code</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#_tempmat" class="tsd-kind-icon">_temp<wbr>Mat</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#_transformmat" class="tsd-kind-icon">_transform<wbr>Mat</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#bottom" class="tsd-kind-icon">bottom</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#bottomright" class="tsd-kind-icon">bottom<wbr>Right</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#hashcode" class="tsd-kind-icon">hash<wbr>Code</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#height" class="tsd-kind-icon">height</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#left" class="tsd-kind-icon">left</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#right" class="tsd-kind-icon">right</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#top" class="tsd-kind-icon">top</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#topleft" class="tsd-kind-icon">top<wbr>Left</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#width" class="tsd-kind-icon">width</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#x" class="tsd-kind-icon">x</a></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#y" class="tsd-kind-icon">y</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-index-section ">
|
|||
|
|
<h3>Accessors</h3>
|
|||
|
|
<ul class="tsd-index-list">
|
|||
|
|
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#center" class="tsd-kind-icon">center</a></li>
|
|||
|
|
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#location" class="tsd-kind-icon">location</a></li>
|
|||
|
|
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#max" class="tsd-kind-icon">max</a></li>
|
|||
|
|
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#size" class="tsd-kind-icon">size</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-index-section ">
|
|||
|
|
<h3>Methods</h3>
|
|||
|
|
<ul class="tsd-index-list">
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-private"><a href="_math_rectangle_.es.rectangle.html#_getbaseheight" class="tsd-kind-icon">$get<wbr>Base<wbr>Height</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-private"><a href="_math_rectangle_.es.rectangle.html#_getbasewidth" class="tsd-kind-icon">$get<wbr>Base<wbr>Width</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-private"><a href="_math_rectangle_.es.rectangle.html#_intersectinplace" class="tsd-kind-icon">$intersect<wbr>InPlace</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#calculatebounds" class="tsd-kind-icon">calculate<wbr>Bounds</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#clone" class="tsd-kind-icon">clone</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="_math_rectangle_.es.rectangle.html#contains" class="tsd-kind-icon">contains</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#containspoint" class="tsd-kind-icon">contains<wbr>Point</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="_math_rectangle_.es.rectangle.html#containsrect" class="tsd-kind-icon">contains<wbr>Rect</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#copyfrom" class="tsd-kind-icon">copy<wbr>From</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#equals" class="tsd-kind-icon">equals</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#getclosestpointonboundstoorigin" class="tsd-kind-icon">get<wbr>Closest<wbr>Point<wbr>OnBounds<wbr>ToOrigin</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#getclosestpointonrectanglebordertopoint" class="tsd-kind-icon">get<wbr>Closest<wbr>Point<wbr>OnRectangle<wbr>Border<wbr>ToPoint</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#gethalfsize" class="tsd-kind-icon">get<wbr>Half<wbr>Size</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#inflate" class="tsd-kind-icon">inflate</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#inflatepoint" class="tsd-kind-icon">inflate<wbr>Point</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#intersection" class="tsd-kind-icon">intersection</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="_math_rectangle_.es.rectangle.html#intersects" class="tsd-kind-icon">intersects</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#isempty" class="tsd-kind-icon">is<wbr>Empty</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#offset" class="tsd-kind-icon">offset</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#offsetpoint" class="tsd-kind-icon">offset<wbr>Point</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_math_rectangle_.es.rectangle.html#rayintersects" class="tsd-kind-icon">ray<wbr>Intersects</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#setempty" class="tsd-kind-icon">set<wbr>Empty</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#setto" class="tsd-kind-icon">set<wbr>To</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#tostring" class="tsd-kind-icon">to<wbr>String</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_math_rectangle_.es.rectangle.html#union" class="tsd-kind-icon">union</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="_math_rectangle_.es.rectangle.html#create" class="tsd-kind-icon">create</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_math_rectangle_.es.rectangle.html#fromminmax" class="tsd-kind-icon">from<wbr>Min<wbr>Max</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_math_rectangle_.es.rectangle.html#rectencompassingpoints" class="tsd-kind-icon">rect<wbr>Encompassing<wbr>Points</a></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="_math_rectangle_.es.rectangle.html#release" class="tsd-kind-icon">release</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
|
|||
|
|
<h2>Constructors</h2>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited">
|
|||
|
|
<a name="constructor" class="tsd-anchor"></a>
|
|||
|
|
<h3>constructor</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">new <wbr>Rectangle<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, width<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, height<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><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">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#constructor">constructor</a></p>
|
|||
|
|
<p>Overrides <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#constructor">constructor</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7653">lib/egret.d.ts:7653</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>创建一个新 Rectangle 对象,其左上角由 x 和 y 参数指定,并具有指定的 width 和 height 参数。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5><span class="tsd-flag ts-flagOptional">Optional</span> x: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>矩形左上角的 x 坐标。</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5><span class="tsd-flag ts-flagOptional">Optional</span> y: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>矩形左上角的 y 坐标。</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5><span class="tsd-flag ts-flagOptional">Optional</span> width: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>矩形的宽度(以像素为单位)。</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5><span class="tsd-flag ts-flagOptional">Optional</span> height: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>矩形的高度(以像素为单位)。</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</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>
|
|||
|
|
<section class="tsd-panel-group tsd-member-group ">
|
|||
|
|
<h2>Properties</h2>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-private">
|
|||
|
|
<a name="_hashcode" class="tsd-anchor"></a>
|
|||
|
|
<h3><span class="tsd-flag ts-flagPrivate">Private</span> $hash<wbr>Code</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">$hash<wbr>Code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_ecs_core_.es.core.html">Core</a>.<a href="_ecs_core_.es.core.html#_hashcode">$hashCode</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L71">lib/egret.d.ts:71</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|||
|
|
<a name="_tempmat" class="tsd-anchor"></a>
|
|||
|
|
<h3>_temp<wbr>Mat</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">_temp<wbr>Mat<span class="tsd-signature-symbol">:</span> <a href="_math_matrix2d_.es.matrix2d.html" class="tsd-signature-type">Matrix2D</a></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Math/Rectangle.ts#L3">src/Math/Rectangle.ts:3</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|||
|
|
<a name="_transformmat" class="tsd-anchor"></a>
|
|||
|
|
<h3>_transform<wbr>Mat</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">_transform<wbr>Mat<span class="tsd-signature-symbol">:</span> <a href="_math_matrix2d_.es.matrix2d.html" class="tsd-signature-type">Matrix2D</a></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Math/Rectangle.ts#L4">src/Math/Rectangle.ts:4</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="bottom" class="tsd-anchor"></a>
|
|||
|
|
<h3>bottom</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">bottom<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#bottom">bottom</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7761">lib/egret.d.ts:7761</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>y 和 height 属性的和。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="bottomright" class="tsd-anchor"></a>
|
|||
|
|
<h3>bottom<wbr>Right</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">bottom<wbr>Right<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Point</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#bottomright">bottomRight</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7821">lib/egret.d.ts:7821</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>由 right 和 bottom 属性的值确定的 Rectangle 对象的右下角的位置。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="hashcode" class="tsd-anchor"></a>
|
|||
|
|
<h3><span class="tsd-flag ts-flagReadonly">Readonly</span> hash<wbr>Code</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">hash<wbr>Code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_ecs_core_.es.core.html">Core</a>.<a href="_ecs_core_.es.core.html#hashcode">hashCode</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L84">lib/egret.d.ts:84</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="height" class="tsd-anchor"></a>
|
|||
|
|
<h3>height</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#height">height</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7735">lib/egret.d.ts:7735</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>The height of the rectangle, in pixels.</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>default</dt>
|
|||
|
|
<dd><p>0</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="left" class="tsd-anchor"></a>
|
|||
|
|
<h3>left</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">left<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#left">left</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7778">lib/egret.d.ts:7778</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>矩形左上角的 x 坐标。更改 Rectangle 对象的 left 属性对 y 和 height 属性没有影响。但是,它会影响 width 属性,而更改 x 值不会影响 width 属性。
|
|||
|
|
left 属性的值等于 x 属性的值。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="right" class="tsd-anchor"></a>
|
|||
|
|
<h3>right</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">right<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#right">right</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7748">lib/egret.d.ts:7748</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>x 和 width 属性的和。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="top" class="tsd-anchor"></a>
|
|||
|
|
<h3>top</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">top<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#top">top</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7795">lib/egret.d.ts:7795</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>矩形左上角的 y 坐标。更改 Rectangle 对象的 top 属性对 x 和 width 属性没有影响。但是,它会影响 height 属性,而更改 y 值不会影响 height 属性。<br/>
|
|||
|
|
top 属性的值等于 y 属性的值。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="topleft" class="tsd-anchor"></a>
|
|||
|
|
<h3>top<wbr>Left</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">top<wbr>Left<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Point</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#topleft">topLeft</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7808">lib/egret.d.ts:7808</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>由该点的 x 和 y 坐标确定的 Rectangle 对象左上角的位置。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="width" class="tsd-anchor"></a>
|
|||
|
|
<h3>width</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#width">width</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7720">lib/egret.d.ts:7720</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>矩形的宽度(以像素为单位)。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>default</dt>
|
|||
|
|
<dd><p>0</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="x" class="tsd-anchor"></a>
|
|||
|
|
<h3>x</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">x<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#x">x</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7690">lib/egret.d.ts:7690</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>矩形左上角的 x 坐标。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>default</dt>
|
|||
|
|
<dd><p>0</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="y" class="tsd-anchor"></a>
|
|||
|
|
<h3>y</h3>
|
|||
|
|
<div class="tsd-signature tsd-kind-icon">y<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#y">y</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7705">lib/egret.d.ts:7705</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>矩形左上角的 y 坐标。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>default</dt>
|
|||
|
|
<dd><p>0</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
</section>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel-group tsd-member-group ">
|
|||
|
|
<h2>Accessors</h2>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
|
|||
|
|
<a name="center" class="tsd-anchor"></a>
|
|||
|
|
<h3>center</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> center<span class="tsd-signature-symbol">(</span><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/Math/Rectangle.ts#L14">src/Math/Rectangle.ts:14</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>中心点坐标</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<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-accessor tsd-parent-kind-class">
|
|||
|
|
<a name="location" class="tsd-anchor"></a>
|
|||
|
|
<h3>location</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> location<span class="tsd-signature-symbol">(</span><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>
|
|||
|
|
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> location<span class="tsd-signature-symbol">(</span>value<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">void</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/Math/Rectangle.ts#L19">src/Math/Rectangle.ts:19</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>左上角的坐标</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h4>
|
|||
|
|
</li>
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Math/Rectangle.ts#L24">src/Math/Rectangle.ts:24</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>value: <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">void</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
|
|||
|
|
<a name="max" class="tsd-anchor"></a>
|
|||
|
|
<h3>max</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> max<span class="tsd-signature-symbol">(</span><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/Math/Rectangle.ts#L9">src/Math/Rectangle.ts:9</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>获取矩形的最大点,即右下角</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<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-accessor tsd-parent-kind-class">
|
|||
|
|
<a name="size" class="tsd-anchor"></a>
|
|||
|
|
<h3>size</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> size<span class="tsd-signature-symbol">(</span><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>
|
|||
|
|
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> size<span class="tsd-signature-symbol">(</span>value<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">void</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/Math/Rectangle.ts#L29">src/Math/Rectangle.ts:29</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h4>
|
|||
|
|
</li>
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Math/Rectangle.ts#L33">src/Math/Rectangle.ts:33</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>value: <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">void</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</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-inherited tsd-is-private">
|
|||
|
|
<a name="_getbaseheight" class="tsd-anchor"></a>
|
|||
|
|
<h3><span class="tsd-flag ts-flagPrivate">Private</span> $get<wbr>Base<wbr>Height</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-private">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">$get<wbr>Base<wbr>Height<span class="tsd-signature-symbol">(</span>angle<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-type">number</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#_getbaseheight">$getBaseHeight</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L8128">lib/egret.d.ts:8128</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>angle: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
</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-inherited tsd-is-private">
|
|||
|
|
<a name="_getbasewidth" class="tsd-anchor"></a>
|
|||
|
|
<h3><span class="tsd-flag ts-flagPrivate">Private</span> $get<wbr>Base<wbr>Width</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-private">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">$get<wbr>Base<wbr>Width<span class="tsd-signature-symbol">(</span>angle<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-type">number</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#_getbasewidth">$getBaseWidth</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L8124">lib/egret.d.ts:8124</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>angle: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
</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-inherited tsd-is-private">
|
|||
|
|
<a name="_intersectinplace" class="tsd-anchor"></a>
|
|||
|
|
<h3><span class="tsd-flag ts-flagPrivate">Private</span> $intersect<wbr>InPlace</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-private">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">$intersect<wbr>InPlace<span class="tsd-signature-symbol">(</span>clipRect<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#_intersectinplace">$intersectInPlace</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7921">lib/egret.d.ts:7921</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>clipRect: <span class="tsd-signature-type">Rectangle</span></h5>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Rectangle</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<a name="calculatebounds" class="tsd-anchor"></a>
|
|||
|
|
<h3>calculate<wbr>Bounds</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">calculate<wbr>Bounds<span class="tsd-signature-symbol">(</span>parentPosition<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, position<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, origin<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, scale<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, rotation<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<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-type">void</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/Math/Rectangle.ts#L220">src/Math/Rectangle.ts:220</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>parentPosition: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>position: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>origin: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>scale: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>rotation: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>width: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>height: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="clone" class="tsd-anchor"></a>
|
|||
|
|
<h3>clone</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">clone<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#clone">clone</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7984">lib/egret.d.ts:7984</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>返回一个新的 Rectangle 对象,其 x、y、width 和 height 属性的值与原始 Rectangle 对象的对应值相同。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Rectangle</span></h4>
|
|||
|
|
<p>新的 Rectangle 对象,其 x、y、width 和 height 属性的值与原始 Rectangle 对象的对应值相同。</p>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
|
|||
|
|
<a name="contains" class="tsd-anchor"></a>
|
|||
|
|
<h3>contains</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">contains<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<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-type">boolean</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Overrides Rectangle.contains</p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Math/Rectangle.ts#L139">src/Math/Rectangle.ts:139</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>x: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>y: <span class="tsd-signature-type">number</span></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-inherited">
|
|||
|
|
<a name="containspoint" class="tsd-anchor"></a>
|
|||
|
|
<h3>contains<wbr>Point</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">contains<wbr>Point<span class="tsd-signature-symbol">(</span>point<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Point</span><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">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#containspoint">containsPoint</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L8003">lib/egret.d.ts:8003</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>确定由此 Rectangle 对象定义的矩形区域内是否包含指定的点。
|
|||
|
|
此方法与 Rectangle.contains() 方法类似,只不过它采用 Point 对象作为参数。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>point: <span class="tsd-signature-type">Point</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>包含点对象</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
|||
|
|
<p>如果包含,返回true,否则返回false</p>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
|
|||
|
|
<a name="containsrect" class="tsd-anchor"></a>
|
|||
|
|
<h3>contains<wbr>Rect</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">contains<wbr>Rect<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</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">
|
|||
|
|
<p>Overrides Rectangle.containsRect</p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Math/Rectangle.ts#L133">src/Math/Rectangle.ts:133</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>value: <a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</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-inherited">
|
|||
|
|
<a name="copyfrom" class="tsd-anchor"></a>
|
|||
|
|
<h3>copy<wbr>From</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">copy<wbr>From<span class="tsd-signature-symbol">(</span>sourceRect<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#copyfrom">copyFrom</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7836">lib/egret.d.ts:7836</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>将源 Rectangle 对象中的所有矩形数据复制到调用方 Rectangle 对象中。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>sourceRect: <span class="tsd-signature-type">Rectangle</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>要从中复制数据的 Rectangle 对象。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Rectangle</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="equals" class="tsd-anchor"></a>
|
|||
|
|
<h3>equals</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">equals<span class="tsd-signature-symbol">(</span>toCompare<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span><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">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#equals">equals</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L8041">lib/egret.d.ts:8041</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>确定在 toCompare 参数中指定的对象是否等于此 Rectangle 对象。
|
|||
|
|
此方法将某个对象的 x、y、width 和 height 属性与此 Rectangle 对象所对应的相同属性进行比较。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>toCompare: <span class="tsd-signature-type">Rectangle</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>要与此 Rectangle 对象进行比较的矩形。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
|||
|
|
<p>如果对象具有与此 Rectangle 对象完全相同的 x、y、width 和 height 属性值,则返回 true 值,否则返回 false。</p>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<a name="getclosestpointonboundstoorigin" class="tsd-anchor"></a>
|
|||
|
|
<h3>get<wbr>Closest<wbr>Point<wbr>OnBounds<wbr>ToOrigin</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">get<wbr>Closest<wbr>Point<wbr>OnBounds<wbr>ToOrigin<span class="tsd-signature-symbol">(</span><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/Math/Rectangle.ts#L194">src/Math/Rectangle.ts:194</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<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">
|
|||
|
|
<a name="getclosestpointonrectanglebordertopoint" class="tsd-anchor"></a>
|
|||
|
|
<h3>get<wbr>Closest<wbr>Point<wbr>OnRectangle<wbr>Border<wbr>ToPoint</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">get<wbr>Closest<wbr>Point<wbr>OnRectangle<wbr>Border<wbr>ToPoint<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>, edgeNormal<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/Math/Rectangle.ts#L152">src/Math/Rectangle.ts:152</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>point: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>edgeNormal: <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">
|
|||
|
|
<a name="gethalfsize" class="tsd-anchor"></a>
|
|||
|
|
<h3>get<wbr>Half<wbr>Size</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">get<wbr>Half<wbr>Size<span class="tsd-signature-symbol">(</span><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/Math/Rectangle.ts#L143">src/Math/Rectangle.ts:143</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<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-inherited">
|
|||
|
|
<a name="inflate" class="tsd-anchor"></a>
|
|||
|
|
<h3>inflate</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">inflate<span class="tsd-signature-symbol">(</span>dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<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-type">void</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#inflate">inflate</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7917">lib/egret.d.ts:7917</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>按指定量增加 Rectangle 对象的大小(以像素为单位)
|
|||
|
|
保持 Rectangle 对象的中心点不变,使用 dx 值横向增加它的大小,使用 dy 值纵向增加它的大小。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>dx: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>Rectangle 对象横向增加的值。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>dy: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>Rectangle 对象纵向增加的值。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="inflatepoint" class="tsd-anchor"></a>
|
|||
|
|
<h3>inflate<wbr>Point</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">inflate<wbr>Point<span class="tsd-signature-symbol">(</span>point<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Point</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#inflatepoint">inflatePoint</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L8056">lib/egret.d.ts:8056</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>增加 Rectangle 对象的大小。此方法与 Rectangle.inflate() 方法类似,只不过它采用 Point 对象作为参数。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>point: <span class="tsd-signature-type">Point</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>The x property of this Point object is used to increase the horizontal dimension of the Rectangle object. The y property is used to increase the vertical dimension of the Rectangle object.</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="intersection" class="tsd-anchor"></a>
|
|||
|
|
<h3>intersection</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">intersection<span class="tsd-signature-symbol">(</span>toIntersect<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#intersection">intersection</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7898">lib/egret.d.ts:7898</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>如果在 toIntersect 参数中指定的 Rectangle 对象与此 Rectangle 对象相交,则返回交集区域作为 Rectangle 对象。如果矩形不相交,
|
|||
|
|
则此方法返回一个空的 Rectangle 对象,其属性设置为 0。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>toIntersect: <span class="tsd-signature-type">Rectangle</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>要对照比较以查看其是否与此 Rectangle 对象相交的 Rectangle 对象。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Rectangle</span></h4>
|
|||
|
|
<p>等于交集区域的 Rectangle 对象。如果该矩形不相交,则此方法返回一个空的 Rectangle 对象;即,其 x、y、width 和
|
|||
|
|
height 属性均设置为 0 的矩形。</p>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
|
|||
|
|
<a name="intersects" class="tsd-anchor"></a>
|
|||
|
|
<h3>intersects</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">intersects<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span><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">
|
|||
|
|
<p>Overrides Rectangle.intersects</p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Math/Rectangle.ts#L77">src/Math/Rectangle.ts:77</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>如果其他相交矩形返回true</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>value: <span class="tsd-signature-type">Rectangle</span></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-inherited">
|
|||
|
|
<a name="isempty" class="tsd-anchor"></a>
|
|||
|
|
<h3>is<wbr>Empty</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">is<wbr>Empty<span class="tsd-signature-symbol">(</span><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">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#isempty">isEmpty</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7956">lib/egret.d.ts:7956</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>确定此 Rectangle 对象是否为空。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
|||
|
|
<p>如果 Rectangle 对象的宽度或高度小于等于 0,则返回 true 值,否则返回 false。</p>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="offset" class="tsd-anchor"></a>
|
|||
|
|
<h3>offset</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">offset<span class="tsd-signature-symbol">(</span>dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<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-type">void</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#offset">offset</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L8073">lib/egret.d.ts:8073</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>按指定量调整 Rectangle 对象的位置(由其左上角确定)。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>dx: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>将 Rectangle 对象的 x 值移动此数量。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>dy: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>将 Rectangle 对象的 t 值移动此数量。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="offsetpoint" class="tsd-anchor"></a>
|
|||
|
|
<h3>offset<wbr>Point</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">offset<wbr>Point<span class="tsd-signature-symbol">(</span>point<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Point</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#offsetpoint">offsetPoint</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L8088">lib/egret.d.ts:8088</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>将 Point 对象用作参数来调整 Rectangle 对象的位置。此方法与 Rectangle.offset() 方法类似,只不过它采用 Point 对象作为参数。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>point: <span class="tsd-signature-type">Point</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>要用于偏移此 Rectangle 对象的 Point 对象。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<a name="rayintersects" class="tsd-anchor"></a>
|
|||
|
|
<h3>ray<wbr>Intersects</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">ray<wbr>Intersects<span class="tsd-signature-symbol">(</span>ray<span class="tsd-signature-symbol">: </span><a href="_physics_ray2d_.es.ray2d.html" class="tsd-signature-type">Ray2D</a>, distance<span class="tsd-signature-symbol">: </span><a href="_utils_ref_.es.ref.html" class="tsd-signature-type">Ref</a><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><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/Math/Rectangle.ts#L84">src/Math/Rectangle.ts:84</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>ray: <a href="_physics_ray2d_.es.ray2d.html" class="tsd-signature-type">Ray2D</a></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>distance: <a href="_utils_ref_.es.ref.html" class="tsd-signature-type">Ref</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></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-inherited">
|
|||
|
|
<a name="setempty" class="tsd-anchor"></a>
|
|||
|
|
<h3>set<wbr>Empty</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">set<wbr>Empty<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#setempty">setEmpty</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7969">lib/egret.d.ts:7969</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>将 Rectangle 对象的所有属性设置为 0。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="setto" class="tsd-anchor"></a>
|
|||
|
|
<h3>set<wbr>To</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">set<wbr>To<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<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-type">Rectangle</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#setto">setTo</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7857">lib/egret.d.ts:7857</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>将 Rectangle 的成员设置为指定值</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>x: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>矩形左上角的 x 坐标。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>y: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>矩形左上角的 y 坐标。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>width: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>矩形的宽度(以像素为单位)。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>height: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>矩形的高度(以像素为单位)。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Rectangle</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="tostring" class="tsd-anchor"></a>
|
|||
|
|
<h3>to<wbr>String</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">to<wbr>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#tostring">toString</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L8103">lib/egret.d.ts:8103</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>生成并返回一个字符串,该字符串列出 Rectangle 对象的水平位置和垂直位置以及高度和宽度。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|||
|
|
<p>一个字符串,它列出了 Rectangle 对象的下列各个属性的值:x、y、width 和 height。</p>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a name="union" class="tsd-anchor"></a>
|
|||
|
|
<h3>union</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">union<span class="tsd-signature-symbol">(</span>toUnion<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#union">union</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L8120">lib/egret.d.ts:8120</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>通过填充两个矩形之间的水平和垂直空间,将这两个矩形组合在一起以创建一个新的 Rectangle 对象。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>toUnion: <span class="tsd-signature-type">Rectangle</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<p>要添加到此 Rectangle 对象的 Rectangle 对象。</p>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Rectangle</span></h4>
|
|||
|
|
<p>充当两个矩形的联合的新 Rectangle 对象。</p>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static">
|
|||
|
|
<a name="create" class="tsd-anchor"></a>
|
|||
|
|
<h3><span class="tsd-flag ts-flagStatic">Static</span> create</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">create<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#create">create</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7653">lib/egret.d.ts:7653</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>从对象池中取出或创建一个新的Rectangle对象。</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Rectangle</span></h4>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</section>
|
|||
|
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|||
|
|
<a name="fromminmax" class="tsd-anchor"></a>
|
|||
|
|
<h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>Min<wbr>Max</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">from<wbr>Min<wbr>Max<span class="tsd-signature-symbol">(</span>minX<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, minY<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, maxX<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, maxY<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><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/Math/Rectangle.ts#L45">src/Math/Rectangle.ts:45</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>minX: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>minY: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>maxX: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<h5>maxY: <span class="tsd-signature-type">number</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
</div>
|
|||
|
|
</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="rectencompassingpoints" class="tsd-anchor"></a>
|
|||
|
|
<h3><span class="tsd-flag ts-flagStatic">Static</span> rect<wbr>Encompassing<wbr>Points</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">rect<wbr>Encompassing<wbr>Points<span class="tsd-signature-symbol">(</span>points<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-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/Math/Rectangle.ts#L53">src/Math/Rectangle.ts:53</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>points: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span></h5>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
</div>
|
|||
|
|
</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-inherited tsd-is-static">
|
|||
|
|
<a name="release" class="tsd-anchor"></a>
|
|||
|
|
<h3><span class="tsd-flag ts-flagStatic">Static</span> release</h3>
|
|||
|
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static">
|
|||
|
|
<li class="tsd-signature tsd-kind-icon">release<span class="tsd-signature-symbol">(</span>rect<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-descriptions">
|
|||
|
|
<li class="tsd-description">
|
|||
|
|
<aside class="tsd-sources">
|
|||
|
|
<p>Inherited from <a href="_math_rectangle_.es.rectangle.html">Rectangle</a>.<a href="_math_rectangle_.es.rectangle.html#release">release</a></p>
|
|||
|
|
<ul>
|
|||
|
|
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L7640">lib/egret.d.ts:7640</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</aside>
|
|||
|
|
<div class="tsd-comment tsd-typography">
|
|||
|
|
<div class="lead">
|
|||
|
|
<p>释放一个Rectangle实例到对象池</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="tsd-comment-tags">
|
|||
|
|
<dt>version</dt>
|
|||
|
|
<dd><p>Egret 2.4</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>platform</dt>
|
|||
|
|
<dd><p>Web,Native</p>
|
|||
|
|
</dd>
|
|||
|
|
<dt>language</dt>
|
|||
|
|
<dd><p>zh_CN</p>
|
|||
|
|
</dd>
|
|||
|
|
</dl>
|
|||
|
|
</div>
|
|||
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|||
|
|
<ul class="tsd-parameters">
|
|||
|
|
<li>
|
|||
|
|
<h5>rect: <span class="tsd-signature-type">Rectangle</span></h5>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</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/_math_rectangle_.html">"<wbr>Math/<wbr>Rectangle"</a>
|
|||
|
|
<ul>
|
|||
|
|
<li class="current tsd-kind-namespace tsd-parent-kind-module">
|
|||
|
|
<a href="../modules/_math_rectangle_.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="_math_rectangle_.es.rectangle.html" class="tsd-kind-icon">Rectangle</a>
|
|||
|
|
<ul>
|
|||
|
|
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#constructor" class="tsd-kind-icon">constructor</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-private">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#_hashcode" class="tsd-kind-icon">$hash<wbr>Code</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#_tempmat" class="tsd-kind-icon">_temp<wbr>Mat</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#_transformmat" class="tsd-kind-icon">_transform<wbr>Mat</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#bottom" class="tsd-kind-icon">bottom</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#bottomright" class="tsd-kind-icon">bottom<wbr>Right</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#hashcode" class="tsd-kind-icon">hash<wbr>Code</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#height" class="tsd-kind-icon">height</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#left" class="tsd-kind-icon">left</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#right" class="tsd-kind-icon">right</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#top" class="tsd-kind-icon">top</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#topleft" class="tsd-kind-icon">top<wbr>Left</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#width" class="tsd-kind-icon">width</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#x" class="tsd-kind-icon">x</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#y" class="tsd-kind-icon">y</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#center" class="tsd-kind-icon">center</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-accessor tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#location" class="tsd-kind-icon">location</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#max" class="tsd-kind-icon">max</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-accessor tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#size" class="tsd-kind-icon">size</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-private">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#_getbaseheight" class="tsd-kind-icon">$get<wbr>Base<wbr>Height</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-private">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#_getbasewidth" class="tsd-kind-icon">$get<wbr>Base<wbr>Width</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-private">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#_intersectinplace" class="tsd-kind-icon">$intersect<wbr>InPlace</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#calculatebounds" class="tsd-kind-icon">calculate<wbr>Bounds</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#clone" class="tsd-kind-icon">clone</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#contains" class="tsd-kind-icon">contains</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#containspoint" class="tsd-kind-icon">contains<wbr>Point</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#containsrect" class="tsd-kind-icon">contains<wbr>Rect</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#copyfrom" class="tsd-kind-icon">copy<wbr>From</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#equals" class="tsd-kind-icon">equals</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#getclosestpointonboundstoorigin" class="tsd-kind-icon">get<wbr>Closest<wbr>Point<wbr>OnBounds<wbr>ToOrigin</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#getclosestpointonrectanglebordertopoint" class="tsd-kind-icon">get<wbr>Closest<wbr>Point<wbr>OnRectangle<wbr>Border<wbr>ToPoint</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#gethalfsize" class="tsd-kind-icon">get<wbr>Half<wbr>Size</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#inflate" class="tsd-kind-icon">inflate</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#inflatepoint" class="tsd-kind-icon">inflate<wbr>Point</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#intersection" class="tsd-kind-icon">intersection</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#intersects" class="tsd-kind-icon">intersects</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#isempty" class="tsd-kind-icon">is<wbr>Empty</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#offset" class="tsd-kind-icon">offset</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#offsetpoint" class="tsd-kind-icon">offset<wbr>Point</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#rayintersects" class="tsd-kind-icon">ray<wbr>Intersects</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#setempty" class="tsd-kind-icon">set<wbr>Empty</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#setto" class="tsd-kind-icon">set<wbr>To</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#tostring" class="tsd-kind-icon">to<wbr>String</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#union" class="tsd-kind-icon">union</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#create" class="tsd-kind-icon">create</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#fromminmax" class="tsd-kind-icon">from<wbr>Min<wbr>Max</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#rectencompassingpoints" class="tsd-kind-icon">rect<wbr>Encompassing<wbr>Points</a>
|
|||
|
|
</li>
|
|||
|
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static">
|
|||
|
|
<a href="_math_rectangle_.es.rectangle.html#release" class="tsd-kind-icon">release</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-class"><span class="tsd-kind-icon">Class</span></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|||
|
|
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<ul class="tsd-legend">
|
|||
|
|
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
|||
|
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
|||
|
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
|||
|
|
</ul>
|
|||
|
|
<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-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>
|