<li><ahref="../../../Microsoft/Xna/Framework/Ray.html"title="class in Microsoft.Xna.Framework"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../Microsoft/Xna/Framework/TitleContainer.html"title="class in Microsoft.Xna.Framework"><spanclass="strong">Next Class</span></a></li>
<li><ahref="../../../System/ValueType.html"title="class in System">System.ValueType</a></li>
<li>
<ulclass="inheritance">
<li>Microsoft.Xna.Framework.Rectangle</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><ahref="../../../System/IEquatable.html"title="interface in System">IEquatable</a><<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a>></dd>
</dl>
<hr>
<br>
<pre>public final class <spanclass="strong">Rectangle</span>
extends <ahref="../../../System/ValueType.html"title="class in System">ValueType</a>
implements <ahref="../../../System/IEquatable.html"title="interface in System">IEquatable</a><<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a>></pre>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<divclass="block">Determines whether this Rectangle contains a specified point represented by its x- and y-coordinates.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Point)">Contains</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Point.html"title="class in Microsoft.Xna.Framework">Point</a> value)</code>
<divclass="block">Determines whether this Rectangle contains a specified Point.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Point, boolean)">Contains</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Point.html"title="class in Microsoft.Xna.Framework">Point</a> value,
boolean result)</code>
<divclass="block">Determines whether this Rectangle contains a specified Point.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Rectangle)">Contains</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value)</code>
<divclass="block">Determines whether this Rectangle entirely contains a specified Rectangle.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Rectangle, boolean)">Contains</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value,
boolean result)</code>
<divclass="block">Determines whether this Rectangle entirely contains a specified Rectangle.</div>
<divclass="block">Determines whether the specified Object is equal to the current instance.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Equals(Microsoft.Xna.Framework.Rectangle)">Equals</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> other)</code>
<divclass="block">Determines whether the specified Object is equal to the Rectangle.</div>
<divclass="block">Pushes the edges of the Rectangle out by the horizontal and vertical values specified.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Intersect(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Intersect</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2)</code>
<divclass="block">Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Intersect(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Intersect</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> result)</code>
<divclass="block">Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Intersects(Microsoft.Xna.Framework.Rectangle)">Intersects</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value)</code>
<divclass="block">Determines whether a specified Rectangle intersects with this Rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Intersects(Microsoft.Xna.Framework.Rectangle, boolean)">Intersects</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value,
boolean result)</code>
<divclass="block">Determines whether a specified Rectangle intersects with this Rectangle.</div>
<divclass="block">Changes the position of the Rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Offset(Microsoft.Xna.Framework.Point)">Offset</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Point.html"title="class in Microsoft.Xna.Framework">Point</a> amount)</code>
<divclass="block">Changes the position of the Rectangle.</div>
<divclass="block">Returns the x-coordinate of the right side of the rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#setLocation(Microsoft.Xna.Framework.Point)">setLocation</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Point.html"title="class in Microsoft.Xna.Framework">Point</a> newLocation)</code>
<divclass="block">Sets the upper-left value of the Rectangle.</div>
<divclass="block">Retrieves a string representation of the current object.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Union(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Union</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2)</code>
<divclass="block">Creates a new Rectangle that exactly contains two other rectangles.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Rectangle.html#Union(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Union</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> result)</code>
<divclass="block">Creates a new Rectangle that exactly contains two other rectangles.</div>
<divclass="block">Initializes a new instance of Rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>x</code> - The x-coordinate of the rectangle.</dd><dd><code>y</code> - The y-coordinate of the rectangle.</dd><dd><code>width</code> - Width of the rectangle.</dd><dd><code>height</code> - Height of the rectangle.</dd></dl>
</li>
</ul>
<aname="Rectangle()">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>Rectangle</h4>
<pre>public Rectangle()</pre>
<divclass="block">Initializes a new instance of Rectangle.</div>
<pre>public void setLocation(<ahref="../../../Microsoft/Xna/Framework/Point.html"title="class in Microsoft.Xna.Framework">Point</a> newLocation)</pre>
<divclass="block">Sets the upper-left value of the Rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>newLocation</code> - The new location of the upper-left value of the Rectangle.</dd></dl>
</li>
</ul>
<aname="Right()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Right</h4>
<pre>public int Right()</pre>
<divclass="block">Returns the x-coordinate of the right side of the rectangle.</div>
</li>
</ul>
<aname="Top()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Top</h4>
<pre>public int Top()</pre>
<divclass="block">Returns the y-coordinate of the top of the rectangle.</div>
</li>
</ul>
<aname="Contains(Microsoft.Xna.Framework.Point)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Contains</h4>
<pre>public boolean Contains(<ahref="../../../Microsoft/Xna/Framework/Point.html"title="class in Microsoft.Xna.Framework">Point</a> value)</pre>
<divclass="block">Determines whether this Rectangle contains a specified Point.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - The Point to evaluate.</dd></dl>
<pre>public boolean Contains(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value)</pre>
<divclass="block">Determines whether this Rectangle entirely contains a specified Rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - The Rectangle to evaluate.</dd></dl>
<pre>public void Contains(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value,
boolean result)</pre>
<divclass="block">Determines whether this Rectangle entirely contains a specified Rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - The Rectangle to evaluate.</dd><dd><code>result</code> - [OutAttribute] On exit, is true if this Rectangle entirely contains the specified Rectangle, or false if not.</dd></dl>
<divclass="block">Determines whether this Rectangle contains a specified point represented by its x- and y-coordinates.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>x</code> - The x-coordinate of the specified point.</dd><dd><code>y</code> - The y-coordinate of the specified point.</dd></dl>
<pre>public void Contains(<ahref="../../../Microsoft/Xna/Framework/Point.html"title="class in Microsoft.Xna.Framework">Point</a> value,
boolean result)</pre>
<divclass="block">Determines whether this Rectangle contains a specified Point.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - The Point to evaluate.</dd><dd><code>result</code> - [OutAttribute] true if the specified Point is contained within this Rectangle; false otherwise.</dd></dl>
<pre>public boolean Equals(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> other)</pre>
<divclass="block">Determines whether the specified Object is equal to the Rectangle.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../System/IEquatable.html#Equals(T)">Equals</a></code> in interface <code><ahref="../../../System/IEquatable.html"title="interface in System">IEquatable</a><<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a>></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>other</code> - The Object to compare with the current Rectangle.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>true if the current object is equal to the other parameter; otherwise, false.</dd></dl>
</li>
</ul>
<aname="GetHashCode()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>GetHashCode</h4>
<pre>public int GetHashCode()</pre>
<divclass="block">Gets the hash code for this object.</div>
<divclass="block">Pushes the edges of the Rectangle out by the horizontal and vertical values specified.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>horizontalAmount</code> - Value to push the sides out by.</dd><dd><code>verticalAmount</code> - Value to push the top and bottom out by.</dd></dl>
<pre>public static <ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> Intersect(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2)</pre>
<divclass="block">Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value1</code> - The first Rectangle to compare.</dd><dd><code>value2</code> - The second Rectangle to compare.</dd>
<pre>public static void Intersect(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> result)</pre>
<divclass="block">Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value1</code> - The first Rectangle to compare.</dd><dd><code>value2</code> - The second Rectangle to compare.</dd><dd><code>result</code> - [OutAttribute] The area where the two first parameters overlap.</dd></dl>
<pre>public boolean Intersects(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value)</pre>
<divclass="block">Determines whether a specified Rectangle intersects with this Rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - The Rectangle to evaluate.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>true if the specified Rectangle intersects with this one; false otherwise.</dd></dl>
<pre>public void Intersects(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value,
boolean result)</pre>
<divclass="block">Determines whether a specified Rectangle intersects with this Rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - The Rectangle to evaluate</dd><dd><code>result</code> - [OutAttribute] true if the specified Rectangle intersects with this one; false otherwise.</dd></dl>
</li>
</ul>
<aname="Offset(Microsoft.Xna.Framework.Point)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Offset</h4>
<pre>public void Offset(<ahref="../../../Microsoft/Xna/Framework/Point.html"title="class in Microsoft.Xna.Framework">Point</a> amount)</pre>
<divclass="block">Changes the position of the Rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>amount</code> - The values to adjust the position of the Rectangle by.</dd></dl>
<divclass="block">Changes the position of the Rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>offsetX</code> - Change in the x-position.</dd><dd><code>offsetY</code> - Change in the y-position.</dd></dl>
<pre>public static <ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> Union(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2)</pre>
<divclass="block">Creates a new Rectangle that exactly contains two other rectangles.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value1</code> - The first Rectangle to contain.</dd><dd><code>value2</code> - The second Rectangle to contain.</dd></dl>
<pre>public static void Union(<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2,
<ahref="../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> result)</pre>
<divclass="block">Creates a new Rectangle that exactly contains two other rectangles.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value1</code> - The first Rectangle to contain.</dd><dd><code>value2</code> - The second Rectangle to contain.</dd><dd><code>result</code> - [OutAttribute] The Rectangle that must be the union of the first two rectangles.</dd></dl>
<li><ahref="../../../Microsoft/Xna/Framework/Ray.html"title="class in Microsoft.Xna.Framework"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../Microsoft/Xna/Framework/TitleContainer.html"title="class in Microsoft.Xna.Framework"><spanclass="strong">Next Class</span></a></li>