1042 lines
40 KiB
HTML
1042 lines
40 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<!--NewPage-->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<!-- Generated by javadoc (build 1.6.0_24) on Sun Apr 15 20:18:21 CEST 2012 -->
|
||
|
<TITLE>
|
||
|
Rectangle
|
||
|
</TITLE>
|
||
|
|
||
|
<META NAME="date" CONTENT="2012-04-15">
|
||
|
|
||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
||
|
|
||
|
<SCRIPT type="text/javascript">
|
||
|
function windowTitle()
|
||
|
{
|
||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||
|
parent.document.title="Rectangle";
|
||
|
}
|
||
|
}
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
</HEAD>
|
||
|
|
||
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
||
|
<HR>
|
||
|
|
||
|
|
||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
<A NAME="navbar_top"><!-- --></A>
|
||
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
||
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
|
<TR>
|
||
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
||
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
|
<TR ALIGN="center" VALIGN="top">
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Rectangle.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</TD>
|
||
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
|
</EM>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
|
||
|
<TR>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Ray.html" title="class in Microsoft.Xna.Framework"><B>PREV CLASS</B></A>
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/TitleContainer.html" title="class in Microsoft.Xna.Framework"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../index.html?Microsoft/Xna/Framework/Rectangle.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="Rectangle.html" target="_top"><B>NO FRAMES</B></A>
|
||
|
<SCRIPT type="text/javascript">
|
||
|
<!--
|
||
|
if(window==top) {
|
||
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
|
}
|
||
|
//-->
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
|
||
|
</FONT></TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="skip-navbar_top"></A>
|
||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
|
||
|
<HR>
|
||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||
|
<H2>
|
||
|
<FONT SIZE="-1">
|
||
|
Microsoft.Xna.Framework</FONT>
|
||
|
<BR>
|
||
|
Class Rectangle</H2>
|
||
|
<PRE>
|
||
|
java.lang.Object
|
||
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../System/ValueType.html" title="class in System">System.ValueType</A>
|
||
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>Microsoft.Xna.Framework.Rectangle</B>
|
||
|
</PRE>
|
||
|
<DL>
|
||
|
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../System/IEquatable.html" title="interface in System">IEquatable</A><<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A>></DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
<DL>
|
||
|
<DT><PRE>public final class <B>Rectangle</B><DT>extends <A HREF="../../../System/ValueType.html" title="class in System">ValueType</A><DT>implements <A HREF="../../../System/IEquatable.html" title="interface in System">IEquatable</A><<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A>></DL>
|
||
|
</PRE>
|
||
|
|
||
|
<P>
|
||
|
Defines a rectangle.
|
||
|
<P>
|
||
|
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Author:</B></DT>
|
||
|
<DD>Halofreak1990</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<P>
|
||
|
<!-- =========== FIELD SUMMARY =========== -->
|
||
|
|
||
|
<A NAME="field_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Field Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Empty">Empty</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a Rectangle with all of its values set to zero.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Height">Height</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Specifies the height of the rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Width">Width</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Specifies the width of the rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#X">X</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Specifies the x-coordinate of the rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Y">Y</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Specifies the y-coordinate of the rectangle.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||
|
|
||
|
<A NAME="constructor_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Constructor Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Rectangle()">Rectangle</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Initializes a new instance of Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Rectangle(int, int, int, int)">Rectangle</A></B>(int x,
|
||
|
int y,
|
||
|
int width,
|
||
|
int height)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Initializes a new instance of Rectangle.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
|
||
|
<A NAME="method_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Method Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Bottom()">Bottom</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns the y-coordinate of the bottom of the rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Center()">Center</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the Point that specifies the center of the rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Contains(int, int)">Contains</A></B>(int x,
|
||
|
int y)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Determines whether this Rectangle contains a specified point represented by its x- and y-coordinates.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Point)">Contains</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Determines whether this Rectangle contains a specified Point.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Point, boolean)">Contains</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> value,
|
||
|
boolean result)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Determines whether this Rectangle contains a specified Point.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Rectangle)">Contains</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Determines whether this Rectangle entirely contains a specified Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Rectangle, boolean)">Contains</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value,
|
||
|
boolean result)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Determines whether this Rectangle entirely contains a specified Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Determines whether the specified Object is equal to the current instance.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Equals(Microsoft.Xna.Framework.Rectangle)">Equals</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> other)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Determines whether the specified Object is equal to the Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#GetHashCode()">GetHashCode</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the hash code for this object.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#getLocation()">getLocation</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the upper-left value of the Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Inflate(int, int)">Inflate</A></B>(int horizontalAmount,
|
||
|
int verticalAmount)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Pushes the edges of the Rectangle out by the horizontal and vertical values specified.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Intersect(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Intersect</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value1,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value2)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Intersect(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Intersect</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value1,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value2,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> result)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Intersects(Microsoft.Xna.Framework.Rectangle)">Intersects</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Determines whether a specified Rectangle intersects with this Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Intersects(Microsoft.Xna.Framework.Rectangle, boolean)">Intersects</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value,
|
||
|
boolean result)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Determines whether a specified Rectangle intersects with this Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#IsEmpty()">IsEmpty</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets a value that indicates whether the Rectangle is empty.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Left()">Left</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns the x-coordinate of the left side of the rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Offset(int, int)">Offset</A></B>(int offsetX,
|
||
|
int offsetY)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Changes the position of the Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Offset(Microsoft.Xna.Framework.Point)">Offset</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> amount)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Changes the position of the Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Right()">Right</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns the x-coordinate of the right side of the rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#setLocation(Microsoft.Xna.Framework.Point)">setLocation</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> newLocation)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Sets the upper-left value of the Rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Top()">Top</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns the y-coordinate of the top of the rectangle.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> java.lang.String</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#toString()">toString</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Retrieves a string representation of the current object.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Union(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Union</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value1,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value2)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Creates a new Rectangle that exactly contains two other rectangles.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../Microsoft/Xna/Framework/Rectangle.html#Union(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Union</A></B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value1,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value2,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> result)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Creates a new Rectangle that exactly contains two other rectangles.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE>clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<P>
|
||
|
|
||
|
<!-- ============ FIELD DETAIL =========== -->
|
||
|
|
||
|
<A NAME="field_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Field Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="Empty"><!-- --></A><H3>
|
||
|
Empty</H3>
|
||
|
<PRE>
|
||
|
public static final <A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> <B>Empty</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a Rectangle with all of its values set to zero.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Height"><!-- --></A><H3>
|
||
|
Height</H3>
|
||
|
<PRE>
|
||
|
public int <B>Height</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Specifies the height of the rectangle.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Width"><!-- --></A><H3>
|
||
|
Width</H3>
|
||
|
<PRE>
|
||
|
public int <B>Width</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Specifies the width of the rectangle.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="X"><!-- --></A><H3>
|
||
|
X</H3>
|
||
|
<PRE>
|
||
|
public int <B>X</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Specifies the x-coordinate of the rectangle.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Y"><!-- --></A><H3>
|
||
|
Y</H3>
|
||
|
<PRE>
|
||
|
public int <B>Y</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Specifies the y-coordinate of the rectangle.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
|
||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||
|
|
||
|
<A NAME="constructor_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Constructor Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="Rectangle(int, int, int, int)"><!-- --></A><H3>
|
||
|
Rectangle</H3>
|
||
|
<PRE>
|
||
|
public <B>Rectangle</B>(int x,
|
||
|
int y,
|
||
|
int width,
|
||
|
int height)</PRE>
|
||
|
<DL>
|
||
|
<DD>Initializes a new instance of Rectangle.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-coordinate of the rectangle.<DD><CODE>y</CODE> - The y-coordinate of the rectangle.<DD><CODE>width</CODE> - Width of the rectangle.<DD><CODE>height</CODE> - Height of the rectangle.</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Rectangle()"><!-- --></A><H3>
|
||
|
Rectangle</H3>
|
||
|
<PRE>
|
||
|
public <B>Rectangle</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Initializes a new instance of Rectangle.
|
||
|
<P>
|
||
|
</DL>
|
||
|
|
||
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
|
||
|
<A NAME="method_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Method Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="Bottom()"><!-- --></A><H3>
|
||
|
Bottom</H3>
|
||
|
<PRE>
|
||
|
public int <B>Bottom</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns the y-coordinate of the bottom of the rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Center()"><!-- --></A><H3>
|
||
|
Center</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> <B>Center</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the Point that specifies the center of the rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="IsEmpty()"><!-- --></A><H3>
|
||
|
IsEmpty</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>IsEmpty</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets a value that indicates whether the Rectangle is empty.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Left()"><!-- --></A><H3>
|
||
|
Left</H3>
|
||
|
<PRE>
|
||
|
public int <B>Left</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns the x-coordinate of the left side of the rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getLocation()"><!-- --></A><H3>
|
||
|
getLocation</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> <B>getLocation</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the upper-left value of the Rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="setLocation(Microsoft.Xna.Framework.Point)"><!-- --></A><H3>
|
||
|
setLocation</H3>
|
||
|
<PRE>
|
||
|
public void <B>setLocation</B>(<A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> newLocation)</PRE>
|
||
|
<DL>
|
||
|
<DD>Sets the upper-left value of the Rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>newLocation</CODE> - The new location of the upper-left value of the Rectangle.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Right()"><!-- --></A><H3>
|
||
|
Right</H3>
|
||
|
<PRE>
|
||
|
public int <B>Right</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns the x-coordinate of the right side of the rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Top()"><!-- --></A><H3>
|
||
|
Top</H3>
|
||
|
<PRE>
|
||
|
public int <B>Top</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns the y-coordinate of the top of the rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Contains(Microsoft.Xna.Framework.Point)"><!-- --></A><H3>
|
||
|
Contains</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>Contains</B>(<A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Determines whether this Rectangle contains a specified Point.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The Point to evaluate.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Contains(Microsoft.Xna.Framework.Rectangle)"><!-- --></A><H3>
|
||
|
Contains</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>Contains</B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Determines whether this Rectangle entirely contains a specified Rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The Rectangle to evaluate.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Contains(Microsoft.Xna.Framework.Rectangle, boolean)"><!-- --></A><H3>
|
||
|
Contains</H3>
|
||
|
<PRE>
|
||
|
public void <B>Contains</B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value,
|
||
|
boolean result)</PRE>
|
||
|
<DL>
|
||
|
<DD>Determines whether this Rectangle entirely contains a specified Rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The Rectangle to evaluate.<DD><CODE>result</CODE> - [OutAttribute] On exit, is true if this Rectangle entirely contains the specified Rectangle, or false if not.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Contains(int, int)"><!-- --></A><H3>
|
||
|
Contains</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>Contains</B>(int x,
|
||
|
int y)</PRE>
|
||
|
<DL>
|
||
|
<DD>Determines whether this Rectangle contains a specified point represented by its x- and y-coordinates.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x-coordinate of the specified point.<DD><CODE>y</CODE> - The y-coordinate of the specified point.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Contains(Microsoft.Xna.Framework.Point, boolean)"><!-- --></A><H3>
|
||
|
Contains</H3>
|
||
|
<PRE>
|
||
|
public void <B>Contains</B>(<A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> value,
|
||
|
boolean result)</PRE>
|
||
|
<DL>
|
||
|
<DD>Determines whether this Rectangle contains a specified Point.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The Point to evaluate.<DD><CODE>result</CODE> - [OutAttribute] true if the specified Point is contained within this Rectangle; false otherwise.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
|
||
|
equals</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>equals</B>(java.lang.Object obj)</PRE>
|
||
|
<DL>
|
||
|
<DD>Determines whether the specified Object is equal to the current instance.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - The Object to compare with the current Ray.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Equals(Microsoft.Xna.Framework.Rectangle)"><!-- --></A><H3>
|
||
|
Equals</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>Equals</B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> other)</PRE>
|
||
|
<DL>
|
||
|
<DD>Determines whether the specified Object is equal to the Rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../System/IEquatable.html#Equals(T)">Equals</A></CODE> in interface <CODE><A HREF="../../../System/IEquatable.html" title="interface in System">IEquatable</A><<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A>></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>other</CODE> - The Object to compare with the current Rectangle.
|
||
|
<DT><B>Returns:</B><DD>true if the current object is equal to the other parameter; otherwise, false.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="GetHashCode()"><!-- --></A><H3>
|
||
|
GetHashCode</H3>
|
||
|
<PRE>
|
||
|
public int <B>GetHashCode</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the hash code for this object.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Inflate(int, int)"><!-- --></A><H3>
|
||
|
Inflate</H3>
|
||
|
<PRE>
|
||
|
public void <B>Inflate</B>(int horizontalAmount,
|
||
|
int verticalAmount)</PRE>
|
||
|
<DL>
|
||
|
<DD>Pushes the edges of the Rectangle out by the horizontal and vertical values specified.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>horizontalAmount</CODE> - Value to push the sides out by.<DD><CODE>verticalAmount</CODE> - Value to push the top and bottom out by.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Intersect(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)"><!-- --></A><H3>
|
||
|
Intersect</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> <B>Intersect</B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value1,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value2)</PRE>
|
||
|
<DL>
|
||
|
<DD>Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value1</CODE> - The first Rectangle to compare.<DD><CODE>value2</CODE> - The second Rectangle to compare.
|
||
|
<DT><B>Returns:</B><DD></DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Intersect(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)"><!-- --></A><H3>
|
||
|
Intersect</H3>
|
||
|
<PRE>
|
||
|
public static void <B>Intersect</B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value1,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value2,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> result)</PRE>
|
||
|
<DL>
|
||
|
<DD>Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value1</CODE> - The first Rectangle to compare.<DD><CODE>value2</CODE> - The second Rectangle to compare.<DD><CODE>result</CODE> - [OutAttribute] The area where the two first parameters overlap.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Intersects(Microsoft.Xna.Framework.Rectangle)"><!-- --></A><H3>
|
||
|
Intersects</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>Intersects</B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value)</PRE>
|
||
|
<DL>
|
||
|
<DD>Determines whether a specified Rectangle intersects with this Rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The Rectangle to evaluate.
|
||
|
<DT><B>Returns:</B><DD>true if the specified Rectangle intersects with this one; false otherwise.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Intersects(Microsoft.Xna.Framework.Rectangle, boolean)"><!-- --></A><H3>
|
||
|
Intersects</H3>
|
||
|
<PRE>
|
||
|
public void <B>Intersects</B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value,
|
||
|
boolean result)</PRE>
|
||
|
<DL>
|
||
|
<DD>Determines whether a specified Rectangle intersects with this Rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The Rectangle to evaluate<DD><CODE>result</CODE> - [OutAttribute] true if the specified Rectangle intersects with this one; false otherwise.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Offset(Microsoft.Xna.Framework.Point)"><!-- --></A><H3>
|
||
|
Offset</H3>
|
||
|
<PRE>
|
||
|
public void <B>Offset</B>(<A HREF="../../../Microsoft/Xna/Framework/Point.html" title="class in Microsoft.Xna.Framework">Point</A> amount)</PRE>
|
||
|
<DL>
|
||
|
<DD>Changes the position of the Rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>amount</CODE> - The values to adjust the position of the Rectangle by.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Offset(int, int)"><!-- --></A><H3>
|
||
|
Offset</H3>
|
||
|
<PRE>
|
||
|
public void <B>Offset</B>(int offsetX,
|
||
|
int offsetY)</PRE>
|
||
|
<DL>
|
||
|
<DD>Changes the position of the Rectangle.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>offsetX</CODE> - Change in the x-position.<DD><CODE>offsetY</CODE> - Change in the y-position.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="toString()"><!-- --></A><H3>
|
||
|
toString</H3>
|
||
|
<PRE>
|
||
|
public java.lang.String <B>toString</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Retrieves a string representation of the current object.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>String that represents the object.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Union(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)"><!-- --></A><H3>
|
||
|
Union</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> <B>Union</B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value1,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value2)</PRE>
|
||
|
<DL>
|
||
|
<DD>Creates a new Rectangle that exactly contains two other rectangles.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value1</CODE> - The first Rectangle to contain.<DD><CODE>value2</CODE> - The second Rectangle to contain.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Union(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)"><!-- --></A><H3>
|
||
|
Union</H3>
|
||
|
<PRE>
|
||
|
public static void <B>Union</B>(<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value1,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> value2,
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Rectangle.html" title="class in Microsoft.Xna.Framework">Rectangle</A> result)</PRE>
|
||
|
<DL>
|
||
|
<DD>Creates a new Rectangle that exactly contains two other rectangles.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>value1</CODE> - The first Rectangle to contain.<DD><CODE>value2</CODE> - The second Rectangle to contain.<DD><CODE>result</CODE> - [OutAttribute] The Rectangle that must be the union of the first two rectangles.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||
|
<HR>
|
||
|
|
||
|
|
||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
|
<A NAME="navbar_bottom"><!-- --></A>
|
||
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
||
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
|
<TR>
|
||
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
||
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
|
<TR ALIGN="center" VALIGN="top">
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Rectangle.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</TD>
|
||
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
|
</EM>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
|
||
|
<TR>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/Ray.html" title="class in Microsoft.Xna.Framework"><B>PREV CLASS</B></A>
|
||
|
<A HREF="../../../Microsoft/Xna/Framework/TitleContainer.html" title="class in Microsoft.Xna.Framework"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../index.html?Microsoft/Xna/Framework/Rectangle.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="Rectangle.html" target="_top"><B>NO FRAMES</B></A>
|
||
|
<SCRIPT type="text/javascript">
|
||
|
<!--
|
||
|
if(window==top) {
|
||
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
|
}
|
||
|
//-->
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
|
||
|
</FONT></TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="skip-navbar_bottom"></A>
|
||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
</BODY>
|
||
|
</HTML>
|