Docs updated Builds updated

This commit is contained in:
Mat Groves 2013-07-02 10:48:05 +01:00
parent b1b2e417a3
commit 69b3be322e
93 changed files with 6214 additions and 1190 deletions

View file

@ -53,12 +53,16 @@
<li><a href="..&#x2F;classes/CanvasRenderer.html">CanvasRenderer</a></li>
<li><a href="..&#x2F;classes/Circle.html">Circle</a></li>
<li><a href="..&#x2F;classes/CustomRenderable.html">CustomRenderable</a></li>
<li><a href="..&#x2F;classes/DisplayObject.html">DisplayObject</a></li>
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li>
<li><a href="..&#x2F;classes/Graphics.html">Graphics</a></li>
<li><a href="..&#x2F;classes/ImageLoader.html">ImageLoader</a></li>
@ -195,6 +199,31 @@ PIXI.Rectangle.prototype.clone = function()
return new PIXI.Rectangle(this.x, this.y, this.width, this.height);
}
&#x2F;**
* @method contains
* @param x {Number} The X coord of the point to test
* @param y {Number} The Y coord of the point to test
* @return if the x&#x2F;y coords are within this polygon
*&#x2F;
PIXI.Rectangle.prototype.contains = function(x, y)
{
if(this.width &lt;= 0 || this.height &lt;= 0)
return false;
var x1 = this.x;
if(x &gt; x1 &amp;&amp; x &lt; x1 + this.width)
{
var y1 = this.y;
if(y &gt; y1 &amp;&amp; y &lt; y1 + this.height)
{
return true;
}
}
return false;
}
&#x2F;&#x2F; constructor
PIXI.Rectangle.constructor = PIXI.Rectangle;