<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxRectangle"></a>mxRectangle</h1><divclass=CBody><p>Implements a 2-dimensional rectangle with double precision coordinates.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxRectangle">mxRectangle</a></td><tdclass=SDescription>Implements a 2-dimensional rectangle with double precision coordinates.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxRectangle.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxRectangle.width"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">width</a></td><tdclass=SDescription>Holds the width of the rectangle. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxRectangle.height"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">height</a></td><tdclass=SDescription>Holds the height of the rectangle. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxRectangle.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxRectangle.mxRectangle"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">mxRectangle</a></td><tdclass=SDescription>Constructs a new rectangle for the optional parameters. </td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxRectangle.setRect"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">setRect</a></td><tdclass=SDescription>Sets this rectangle to the specified values.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxRectangle.getCenterX"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">getCenterX</a></td><tdclass=SDescription>Returns the x-coordinate of the center point.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxRectangle.getCenterY"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">getCenterY</a></td><tdclass=SDescription>Returns the y-coordinate of the center point.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxRectangle.add"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">add</a></td><tdclass=SDescription>Adds the given rectangle to this rectangle.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxRectangle.grow"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">grow</a></td><tdclass=SDescription>Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxRectangle.equals"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">equals</a></td><tdclass=SDescription>Returns true if the given object equals this rectangle.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxRectangle.copy"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">copy</a></td><tdclass=SDescription>Returns a copy of this <ahref="#mxRectangle.mxRectangle"class=LFunctionid=link11onMouseOver="ShowTip(event, 'tt3', 'link11')"onMouseOut="HideTip('tt3')">mxRectangle</a>.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.width"></a>width</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $width</td></tr></table></blockquote><p>Holds the width of the rectangle. Default is 0.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.height"></a>height</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $height</td></tr></table></blockquote><p>Holds the height of the rectangle. Default is 0.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.mxRectangle"></a>mxRectangle</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxRectangle(</td><tdclass=PParameternowrap>$x</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$y</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$width</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$height</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new rectangle for the optional parameters. If no parameters are given then the respective default values are used.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.setRect"></a>setRect</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setRect(</td><tdclass=PParameternowrap>$x,</td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td></tr><tr><td></td><tdclass=PParameternowrap>$width,</td></tr><tr><td></td><tdclass=PParameternowrap>$height</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets this rectangle to the specified values.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.getCenterX"></a>getCenterX</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function getCenterX()</td></tr></table></blockquote><p>Returns the x-coordinate of the center point.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.getCenterY"></a>getCenterY</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function getCenterY()</td></tr></table></blockquote><p>Returns the y-coordinate of the center point.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.add"></a>add</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function add(</td><tdclass=PParameternowrap>$rect</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds the given rectangle to this rectangle.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.grow"></a>grow</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function grow(</td><tdclass=PParameternowrap>$amount</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.equals"></a>equals</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function equals(</td><tdclass=PParameternowrap>$obj</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given object equals this rectangle.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxRectangle.copy"></a>copy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function copy()</td></tr></table></blockquote><p>Returns a copy of this <ahref="#mxRectangle.mxRectangle"class=LFunctionid=link12onMouseOver="ShowTip(event, 'tt3', 'link12')"onMouseOut="HideTip('tt3')">mxRectangle</a>.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $width</td></tr></table></blockquote>Holds the width of the rectangle. </div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $height</td></tr></table></blockquote>Holds the height of the rectangle. </div></div><divclass=CToolTipid="tt3"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxRectangle(</td><tdclass=PParameternowrap>$x</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$y</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$width</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0,</td></tr><tr><td></td><tdclass=PParameternowrap>$height</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new rectangle for the optional parameters. </div></div><divclass=CToolTipid="tt4"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setRect(</td><tdclass=PParameternowrap>$x,</td></tr><tr><td></td><tdclass=PParameternowrap>$y,</td></tr><tr><td></td><tdclass=PParameternowrap>$width,</td></tr><tr><td></td><tdclass=PParameternowrap>$height</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Sets this rectangle to the specified values.</div></div><divclass=CToolTipid="tt5"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function getCenterX()</td></tr></table></blockquote>Returns the x-coordinate of the center point.</div></div><divclass=CToolTipid="tt6"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function getCenterY()</td></tr></table></blockquote>Returns the y-coordinate of the center point.</div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function add(</td><tdclass=PParameternowrap>$rect</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Adds the given rectangle to this rectangle.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function grow(</td><tdclass=PParameternowrap>$amount</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function equals(</td><tdclass=PParameternowrap>$obj</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the given object equals this rectangle.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>funct